add back Dygraph.floatFormat
[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
DV
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>