Merge pull request #131 from klausw-g/highlight-NaN-2
[dygraphs.git] / tests / native-format.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>Native Format</title>
6 <!--[if IE]>
7 <script type="text/javascript" src="../excanvas.js"></script>
8 <![endif]-->
9 <!--
10 For production (minified) code, use:
11 <script type="text/javascript" src="dygraph-combined.js"></script>
12 -->
13 <script type="text/javascript" src="../dygraph-dev.js"></script>
14
15 </head>
16 <body>
17 <p>These two charts should be indistinguishable:</p>
18 <!-- <div id="graphdiv"></div> -->
19 <div id="graphdiv"></div>
20 <script type="text/javascript">
21 g = new Dygraph(document.getElementById("graphdiv"),
22 "x,A,B\n" +
23 "1,10,100\n" +
24 "2,20,80\n" +
25 "3,50,60\n" +
26 "4,70,80\n");
27 </script>
28
29 <p>Same data, specified in a parsed format:</p>
30 <div id="graphdiv2"></div>
31 <script type="text/javascript">
32 g2 = new Dygraph(document.getElementById("graphdiv2"),
33 [
34 [1,10,100],
35 [2,20,80],
36 [3,50,60],
37 [4,70,80]
38 ],
39 {
40 labels: [ "x", "A", "B" ]
41 });
42 </script>
43 </body>
44 </html>