Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
82e6b4f8 DV |
2 | <html> |
3 | <head> | |
4 | <title>Fractions</title> | |
7e5ddc94 DV |
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 | ||
82e6b4f8 DV |
11 | </head> |
12 | <body> | |
13 | Fractions: | |
14 | <div id="dg" style="width:600px; height:300px;">Loading...</div> | |
15 | ||
16 | With error bars and roller: | |
17 | <div id="dg2" style="width:600px; height:300px;">Loading...</div> | |
18 | ||
19 | <script type="text/javascript"> | |
20 | var frac_str = | |
21 | "X,Frac1,Frac2\n" + | |
22 | "1,1/2,3/4\n"+ | |
23 | "2,1/3,2/3\n"+ | |
24 | "3,2/3,17/49\n"+ | |
25 | "4,25/30,100/200"; | |
26 | ||
f6fbf9e0 | 27 | var g1 = new Dygraph(document.getElementById("dg"), |
82e6b4f8 DV |
28 | frac_str, |
29 | { | |
30 | fractions: true | |
31 | }); | |
32 | ||
f6fbf9e0 | 33 | var g2 = new Dygraph(document.getElementById("dg2"), |
82e6b4f8 DV |
34 | frac_str, |
35 | { | |
36 | fractions: true, | |
37 | errorBars: true, | |
38 | showRoller: true | |
39 | }); | |
40 | </script> | |
41 | </body> | |
42 | </html> |