REFACTORING: cleaned up code and style for new grid per axis feature.
[dygraphs.git] / tests / layout-options.html
CommitLineData
54425b14 1<!DOCTYPE html>
87bb7958
DV
2<html>
3 <head>
10494b48 4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
87bb7958
DV
5 <title>Layout Options</title>
6 <!--[if IE]>
a2b2c3a1 7 <script type="text/javascript" src="../excanvas.js"></script>
87bb7958 8 <![endif]-->
7e5ddc94
DV
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
87bb7958
DV
15 <script type="text/javascript" src="data.js"></script>
16 </head>
17 <body>
18 <h2>Layout Options Update</h2>
19 <div id="chart" style="width:600px; height:300px;"></div>
20 <script type="text/javascript">
21 g = new Dygraph(document.getElementById('chart'), data,
22 {
23 strokeWidth: 2
24 });
25
26 function change() {
27 g.updateOptions({strokeWidth:
28 parseFloat(document.getElementById("strokeWidth").value)});
29 }
30 </script>
31
32 <p>Stroke Width:
33 <input type=text id="strokeWidth" value="2.0" />
34 <input type=button value="Change Stroke Width" onClick="change()" />
35 </p>
36 </body>
37</html>