Merge branch 'master' of http://github.com/nealie/dygraphs
[dygraphs.git] / tests / two-series.html
1 <html>
2 <head>
3 <title>two series</title>
4 <!--[if IE]>
5 <script type="text/javascript" src="../excanvas.js"></script>
6 <![endif]-->
7 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
8 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
9 <script type="text/javascript" src="../dygraph-canvas.js"></script>
10 <script type="text/javascript" src="../dygraph.js"></script>
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <p>No rollup:</p>
15 <div id="div_g" style="width:600px; height:300px;"></div>
16 <p>30-Day Rollup:</p>
17 <div id="div_g30" style="width:600px; height:300px;"></div>
18
19 <script type="text/javascript">
20 g = new Dygraph(
21 document.getElementById("div_g"),
22 data, {}
23 );
24 g30 = new Dygraph(
25 document.getElementById("div_g30"),
26 data, {
27 rollPeriod: 30
28 }
29 );
30 </script>
31 </body>
32 </html>