update comments to reflect 20->50px
[dygraphs.git] / tests / dygraph.html
CommitLineData
54425b14 1<!DOCTYPE html>
285a6bda
DV
2<html>
3 <head>
6f091595 4 <title>dygraph</title>
7e5ddc94
DV
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
9 <script type="text/javascript" src="../dygraph-dev.js"></script>
10
285a6bda
DV
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>