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