6c5b56604d14242d2bc8ed07c309d26a0f049534
[dygraphs.git] / tests / noise.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>noise</title>
6 <!--[if IE]>
7 <script type="text/javascript" src="../excanvas.js"></script>
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 <div id="div_g" style="width:600px; height:300px;"></div>
17 <br/>
18 <div id="div_g30" style="width:600px; height:300px;"></div>
19
20 <script type="text/javascript">
21 g = new Dygraph(
22 document.getElementById("div_g"),
23 NoisyData, {
24 rollPeriod: 7,
25 errorBars: true,
26 legend: 'always',
27 ylabel: 'Percent Error',
28 yAxisLabelWidth: 25,
29 title: 'Error Rates over Time (7-day rollup)'
30 }
31 );
32 g30 = new Dygraph(
33 document.getElementById("div_g30"),
34 NoisyData().replace(/,/g, "\t"), {
35 rollPeriod: 14,
36 errorBars: true,
37 legend: 'always',
38 labelsDivStyles: {
39 'textAlign': 'right',
40 },
41 labelsDivWidth: 170,
42 ylabel: 'Percent Error',
43 yAxisLabelWidth: 25,
44 title: 'Error Rates over Time (14-day rollup)'
45 }
46 );
47 </script>
48 </body>
49 </html>