Change option to highlightSeriesBackgroundAlpha
[dygraphs.git] / tests / layout-options.html
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 <!--
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
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>