Merge branch 'master' into chart-labels
[dygraphs.git] / tests / noise.html
CommitLineData
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]-->
d37dca40
DV
9 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
10 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
285a6bda 11 <script type="text/javascript" src="../dygraph-canvas.js"></script>
2769de62 12 <script type="text/javascript" src="../dygraph.js"></script>
4e265dc4
DV
13 <script type="text/javascript" src="data.js"></script>
14 </head>
15 <body>
d16579a0 16 <div id="div_g" style="width:600px; height:300px;"></div>
ad1798c2 17 <br/>
d16579a0 18 <div id="div_g30" style="width:600px; height:300px;"></div>
4e265dc4
DV
19
20 <script type="text/javascript">
285a6bda 21 g = new Dygraph(
d16579a0 22 document.getElementById("div_g"),
285a6bda 23 NoisyData, {
4e265dc4 24 rollPeriod: 7,
2fccd3dc 25 errorBars: true,
ad1798c2
DV
26 legend: 'always',
27 ylabel: 'Percent Error',
28 yAxisLabelWidth: 25,
29 title: 'Error Rates over Time (7-day rollup)'
4e265dc4
DV
30 }
31 );
285a6bda 32 g30 = new Dygraph(
d16579a0 33 document.getElementById("div_g30"),
3d67f03b 34 NoisyData().replace(/,/g, "\t"), {
4e265dc4 35 rollPeriod: 14,
2fccd3dc
DV
36 errorBars: true,
37 legend: 'always',
38 labelsDivStyles: {
ad1798c2 39 'textAlign': 'right',
2fccd3dc 40 },
ad1798c2
DV
41 labelsDivWidth: 170,
42 ylabel: 'Percent Error',
43 yAxisLabelWidth: 25,
44 title: 'Error Rates over Time (14-day rollup)'
4e265dc4
DV
45 }
46 );
47 </script>
48 </body>
49</html>