Fix and regression test for fast proxy artifacts.
[dygraphs.git] / tests / dygraph.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>dygraph</title>
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
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>