Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
87bb7958 DV |
2 | <html> |
3 | <head> | |
4 | <title>Layout Options</title> | |
5 | <!--[if IE]> | |
a2b2c3a1 | 6 | <script type="text/javascript" src="../excanvas.js"></script> |
87bb7958 DV |
7 | <![endif]--> |
8 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> | |
9 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> | |
10 | <script type="text/javascript" src="../dygraph-canvas.js"></script> | |
11 | <script type="text/javascript" src="../dygraph.js"></script> | |
12 | <script type="text/javascript" src="data.js"></script> | |
13 | </head> | |
14 | <body> | |
15 | <h2>Layout Options Update</h2> | |
16 | <div id="chart" style="width:600px; height:300px;"></div> | |
17 | <script type="text/javascript"> | |
18 | g = new Dygraph(document.getElementById('chart'), data, | |
19 | { | |
20 | strokeWidth: 2 | |
21 | }); | |
22 | ||
23 | function change() { | |
24 | g.updateOptions({strokeWidth: | |
25 | parseFloat(document.getElementById("strokeWidth").value)}); | |
26 | } | |
27 | </script> | |
28 | ||
29 | <p>Stroke Width: | |
30 | <input type=text id="strokeWidth" value="2.0" /> | |
31 | <input type=button value="Change Stroke Width" onClick="change()" /> | |
32 | </p> | |
33 | </body> | |
34 | </html> |