Merge pull request #764 from danvk/label_v
[dygraphs.git] / tests / layout-options.html
CommitLineData
54425b14 1<!DOCTYPE html>
87bb7958
DV
2<html>
3 <head>
4 <title>Layout Options</title>
7e5ddc94
DV
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
fbd6834a 9 <script type="text/javascript" src="../dist/dygraph.js"></script>
7e5ddc94 10
87bb7958
DV
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <h2>Layout Options Update</h2>
15 <div id="chart" style="width:600px; height:300px;"></div>
16 <script type="text/javascript">
17 g = new Dygraph(document.getElementById('chart'), data,
18 {
19 strokeWidth: 2
20 });
21
22 function change() {
23 g.updateOptions({strokeWidth:
24 parseFloat(document.getElementById("strokeWidth").value)});
25 }
26 </script>
27
28 <p>Stroke Width:
29 <input type=text id="strokeWidth" value="2.0" />
30 <input type=button value="Change Stroke Width" onClick="change()" />
31 </p>
32 </body>
33</html>