Hiding "copy".
[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 <!--
10 For production (minified) code, use:
11 <script type="text/javascript" src="dygraph-combined.js"></script>
12 -->
13 <script type="text/javascript" src="../dygraph-dev.js"></script>
14
15 <script type="text/javascript" src="data.js"></script>
16 </head>
17 <body>
18 <div id="div_g" style="width:600px; height:300px;"></div>
19 <br/>
20 <div id="div_g30" style="width:600px; height:300px;"></div>
21
22 <script type="text/javascript">
23 g = new Dygraph(
24 document.getElementById("div_g"),
25 NoisyData, {
26 rollPeriod: 7,
27 errorBars: true,
28 legend: 'always',
29 ylabel: 'Percent Error',
30 title: 'Error Rates over Time (7-day rollup)'
31 }
32 );
33 g30 = new Dygraph(
34 document.getElementById("div_g30"),
35 NoisyData().replace(/,/g, "\t"), {
36 rollPeriod: 14,
37 errorBars: true,
38 legend: 'always',
39 labelsDivStyles: {
40 'textAlign': 'right',
41 },
42 labelsDivWidth: 170,
43 ylabel: 'Percent Error',
44 title: 'Error Rates over Time (14-day rollup)'
45 }
46 );
47 </script>
48 </body>
49 </html>