Merge
[dygraphs.git] / tests / native-format.html
CommitLineData
54425b14 1<!DOCTYPE html>
285a6bda
DV
2<html>
3 <head>
10494b48 4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
285a6bda
DV
5 <title>Native Format</title>
6 <!--[if IE]>
a2b2c3a1 7 <script type="text/javascript" src="../excanvas.js"></script>
285a6bda 8 <![endif]-->
7e5ddc94
DV
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
285a6bda
DV
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"),
d16579a0 33 [
285a6bda
DV
34 [1,10,100],
35 [2,20,80],
36 [3,50,60],
d16579a0 37 [4,70,80]
285a6bda
DV
38 ],
39 {
5011e7a1 40 labels: [ "x", "A", "B" ]
285a6bda
DV
41 });
42 </script>
43 </body>
44</html>