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