fix color-visibility test
[dygraphs.git] / tests / dygraph.html
CommitLineData
285a6bda
DV
1<html>
2 <head>
6f091595 3 <title>dygraph</title>
285a6bda 4 <!--[if IE]>
a1a4d81f 5 <script type="text/javascript" src="../excanvas.js"></script>
285a6bda 6 <![endif]-->
d37dca40
DV
7 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
8 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
285a6bda
DV
9 <script type="text/javascript" src="../dygraph-canvas.js"></script>
10 <script type="text/javascript" src="../dygraph.js"></script>
11 </head>
12 <body>
13 <p>Minimal example of a dygraph chart:</p>
14 <div id="graphdiv"></div>
15 <script type="text/javascript">
16 g = new Dygraph(document.getElementById("graphdiv"),
17 "Date,Temperature\n" +
18 "2008-05-07,75\n" +
19 "2008-05-08,70\n" +
20 "2008-05-09,80\n");
21 </script>
22
23 <p>Same data, specified in a parsed format:</p>
24 <div id="graphdiv2"></div>
25 <script type="text/javascript">
26 g2 = new Dygraph(document.getElementById("graphdiv2"),
27 [ [ new Date("2008/05/07"), 75],
28 [ new Date("2008/05/08"), 70],
29 [ new Date("2008/05/09"), 80]
30 ],
31 {
32 labels: [ "Date", "Temperature" ]
33 });
34 </script>
35 </body>
36</html>