dygraphs finally stays within its bounds! removed padding property and tweaked PlotKi...
[dygraphs.git] / tests / two-series.html
CommitLineData
4e265dc4
DV
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="../dygraph-combined.js"></script>
285a6bda 8 <script type="text/javascript" src="../dygraph-canvas.js"></script>
fd2a2ee2 9 <script type="text/javascript" src="../dygraph.js"></script>
4e265dc4
DV
10 <script type="text/javascript" src="data.js"></script>
11 </head>
12 <body>
13 <p>No rollup:</p>
14 <div id="g" style="width:600px; height:300px;"></div>
15 <p>30-Day Rollup:</p>
16 <div id="g30" style="width:600px; height:300px;"></div>
17
18 <script type="text/javascript">
285a6bda 19 g = new Dygraph(
4e265dc4 20 document.getElementById("g"),
285a6bda 21 data, {}
4e265dc4 22 );
285a6bda 23 g30 = new Dygraph(
4e265dc4 24 document.getElementById("g30"),
285a6bda 25 data, {
4e265dc4
DV
26 rollPeriod: 30
27 }
28 );
29 </script>
30 </body>
31</html>