add the magic <meta> tag for IE8+9
[dygraphs.git] / tests / fillGraph.html
... / ...
CommitLineData
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>fillGraph</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 </head>
14 <body>
15 <p>Filled, no error bars:</p>
16 <div id="div_g" style="width:600px; height:300px;"></div>
17
18 <p>Filled, negatives:</p>
19 <div id="div_g2" style="width:600px; height:300px;"></div>
20
21 <p>Filled, error bars:</p>
22 <div id="div_g3" style="width:600px; height:300px;"></div>
23
24 <script type="text/javascript">
25 new Dygraph(
26 document.getElementById("div_g"),
27 function() {
28 var ret = "X,Y1,Y2\n";
29 for (var i = 0; i < 100; i++) {
30 ret += i + "," + i + "," + (i * (100-i) * 100/(50*50)) + "\n";
31 }
32 return ret;
33 },
34 { fillGraph: true }
35 );
36
37 new Dygraph(
38 document.getElementById("div_g2"),
39 function() {
40 var ret = "X,Y1,Y2\n";
41 for (var i = 0; i < 100; i++) {
42 ret += i + "," + (i - 50) +
43 "," + (50 - i * (100-i) * 100/(50*50)) + "\n";
44 }
45 return ret;
46 },
47 { fillGraph: true }
48 );
49
50 new Dygraph(
51 document.getElementById("div_g3"),
52 function() {
53 var ret = "X,Y1,Y2\n";
54 for (var i = 0; i < 100; i++) {
55 ret += i + "," + i + ",10," +
56 (i * (100-i) * 100/(50*50)) + ",5\n";
57 }
58 return ret;
59 },
60 {
61 errorBars: true,
62 fillGraph: true
63 }
64 );
65 </script>
66 </body>
67</html>