Change no-series-defined behavior so that it computes the
[dygraphs.git] / tests / two-series.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>two series</title>
6 <!--[if IE]>
7 <script type="text/javascript" src="../excanvas.js"></script>
8 <![endif]-->
9 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
10 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
11 <script type="text/javascript" src="../dygraph-canvas.js"></script>
12 <script type="text/javascript" src="../dygraph.js"></script>
13 <script type="text/javascript" src="data.js"></script>
14 </head>
15 <body>
16 <p>No rollup:</p>
17 <div id="div_g" style="width:600px; height:300px;"></div>
18 <p>30-Day Rollup:</p>
19 <div id="div_g30" style="width:600px; height:300px;"></div>
20
21 <script type="text/javascript">
22 g = new Dygraph(
23 document.getElementById("div_g"),
24 data, {}
25 );
26 g30 = new Dygraph(
27 document.getElementById("div_g30"),
28 data, {
29 rollPeriod: 30
30 }
31 );
32 </script>
33 </body>
34 </html>