Merge branch 'master' into per_series
[dygraphs.git] / tests / noise.html
1 <html>
2 <head>
3 <title>noise</title>
4 <!--[if IE]>
5 <script type="text/javascript" src="excanvas.js"></script>
6 <![endif]-->
7 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
8 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
9 <script type="text/javascript" src="../dygraph-canvas.js"></script>
10 <script type="text/javascript" src="../dygraph.js"></script>
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <p>7-day rollup:</p>
15 <div id="div_g" style="width:600px; height:300px;"></div>
16 <p>14-Day Rollup:</p>
17 <div id="div_g30" style="width:600px; height:300px;"></div>
18
19 <script type="text/javascript">
20 g = new Dygraph(
21 document.getElementById("div_g"),
22 NoisyData, {
23 rollPeriod: 7,
24 errorBars: true
25 }
26 );
27 g30 = new Dygraph(
28 document.getElementById("div_g30"),
29 NoisyData().replace(/,/g, "\t"), {
30 rollPeriod: 14,
31 errorBars: true
32 }
33 );
34 </script>
35 </body>
36 </html>