fix gviz-numeric test
[dygraphs.git] / tests / noise.html
CommitLineData
4e265dc4
DV
1<html>
2 <head>
3 <title>noise</title>
4 <!--[if IE]>
a2b2c3a1 5 <script type="text/javascript" src="../excanvas.js"></script>
4e265dc4 6 <![endif]-->
d37dca40
DV
7 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
8 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
285a6bda 9 <script type="text/javascript" src="../dygraph-canvas.js"></script>
2769de62 10 <script type="text/javascript" src="../dygraph.js"></script>
4e265dc4
DV
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <p>7-day rollup:</p>
d16579a0 15 <div id="div_g" style="width:600px; height:300px;"></div>
4e265dc4 16 <p>14-Day Rollup:</p>
d16579a0 17 <div id="div_g30" style="width:600px; height:300px;"></div>
4e265dc4
DV
18
19 <script type="text/javascript">
285a6bda 20 g = new Dygraph(
d16579a0 21 document.getElementById("div_g"),
285a6bda 22 NoisyData, {
4e265dc4 23 rollPeriod: 7,
2fccd3dc
DV
24 errorBars: true,
25 legend: 'always'
4e265dc4
DV
26 }
27 );
285a6bda 28 g30 = new Dygraph(
d16579a0 29 document.getElementById("div_g30"),
3d67f03b 30 NoisyData().replace(/,/g, "\t"), {
4e265dc4 31 rollPeriod: 14,
2fccd3dc
DV
32 errorBars: true,
33 legend: 'always',
34 labelsDivStyles: {
35 'text-align': 'right',
36 },
37 labelsDivWidth: 170
4e265dc4
DV
38 }
39 );
40 </script>
41 </body>
42</html>