add HTML5 doctype to all tests
[dygraphs.git] / tests / native-format.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Native Format</title>
5 <!--[if IE]>
6 <script type="text/javascript" src="../excanvas.js"></script>
7 <![endif]-->
8 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
9 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
10 <script type="text/javascript" src="../dygraph-canvas.js"></script>
11 <script type="text/javascript" src="../dygraph.js"></script>
12 </head>
13 <body>
14 <p>These two charts should be indistinguishable:</p>
15 <!-- <div id="graphdiv"></div> -->
16 <div id="graphdiv"></div>
17 <script type="text/javascript">
18 g = new Dygraph(document.getElementById("graphdiv"),
19 "x,A,B\n" +
20 "1,10,100\n" +
21 "2,20,80\n" +
22 "3,50,60\n" +
23 "4,70,80\n");
24 </script>
25
26 <p>Same data, specified in a parsed format:</p>
27 <div id="graphdiv2"></div>
28 <script type="text/javascript">
29 g2 = new Dygraph(document.getElementById("graphdiv2"),
30 [
31 [1,10,100],
32 [2,20,80],
33 [3,50,60],
34 [4,70,80]
35 ],
36 {
37 labels: [ "x", "A", "B" ]
38 });
39 </script>
40 </body>
41 </html>