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