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