fix some bugs that were breaking IE
[dygraphs.git] / tests / small-range-zero.html
1 <html>
2 <head>
3 <title>no range</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>
8 <script type="text/javascript" src="../dygraph-canvas.js"></script>
9 <script type="text/javascript" src="../dygraph.js"></script>
10 </head>
11 <body>
12 <p>There should be an appropriate amount of padding at the top of the chart:</p>
13 <div id="blah"></div>
14
15 <script type="text/javascript">
16 function CSV() {
17 var label = "X";
18
19 return "date," + label + "\n20091206,2659329.631743\n20091213,2772361.123362\n20091220,2737584.647191\n20091227,2720000.550414\n20100103,2910306.897977\n20100110,2901385.313093\n20100117,2903041.312099\n20100124,2966455.128911\n";
20 }
21
22 new Dygraph(document.getElementById("blah"),
23 CSV,
24 {
25 width: 640,
26 height: 480,
27 includeZero: true
28 });
29
30 </script>
31 </body>
32 </html>