some tweaks to knikhil's change
[dygraphs.git] / tests / noise.html
CommitLineData
4e265dc4
DV
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="../dygraph-combined.js"></script>
285a6bda 8 <script type="text/javascript" src="../dygraph-canvas.js"></script>
2769de62 9 <script type="text/javascript" src="../dygraph.js"></script>
4e265dc4
DV
10 <script type="text/javascript" src="data.js"></script>
11 </head>
12 <body>
13 <p>7-day rollup:</p>
d16579a0 14 <div id="div_g" style="width:600px; height:300px;"></div>
4e265dc4 15 <p>14-Day Rollup:</p>
d16579a0 16 <div id="div_g30" style="width:600px; height:300px;"></div>
4e265dc4
DV
17
18 <script type="text/javascript">
285a6bda 19 g = new Dygraph(
d16579a0 20 document.getElementById("div_g"),
285a6bda 21 NoisyData, {
4e265dc4
DV
22 rollPeriod: 7,
23 errorBars: true
24 }
25 );
285a6bda 26 g30 = new Dygraph(
d16579a0 27 document.getElementById("div_g30"),
3d67f03b 28 NoisyData().replace(/,/g, "\t"), {
4e265dc4
DV
29 rollPeriod: 14,
30 errorBars: true
31 }
32 );
33 </script>
34 </body>
35</html>