Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
82e6b4f8 DV |
2 | <html> |
3 | <head> | |
10494b48 | 4 | <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> |
82e6b4f8 DV |
5 | <title>Fractions</title> |
6 | <!--[if IE]> | |
a2b2c3a1 | 7 | <script type="text/javascript" src="../excanvas.js"></script> |
82e6b4f8 | 8 | <![endif]--> |
d37dca40 DV |
9 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> |
10 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> | |
82e6b4f8 DV |
11 | <script type="text/javascript" src="../dygraph-canvas.js"></script> |
12 | <script type="text/javascript" src="../dygraph.js"></script> | |
13 | </head> | |
14 | <body> | |
15 | Fractions: | |
16 | <div id="dg" style="width:600px; height:300px;">Loading...</div> | |
17 | ||
18 | With error bars and roller: | |
19 | <div id="dg2" style="width:600px; height:300px;">Loading...</div> | |
20 | ||
21 | <script type="text/javascript"> | |
22 | var frac_str = | |
23 | "X,Frac1,Frac2\n" + | |
24 | "1,1/2,3/4\n"+ | |
25 | "2,1/3,2/3\n"+ | |
26 | "3,2/3,17/49\n"+ | |
27 | "4,25/30,100/200"; | |
28 | ||
29 | new Dygraph(document.getElementById("dg"), | |
30 | frac_str, | |
31 | { | |
32 | fractions: true | |
33 | }); | |
34 | ||
35 | new Dygraph(document.getElementById("dg2"), | |
36 | frac_str, | |
37 | { | |
38 | fractions: true, | |
39 | errorBars: true, | |
40 | showRoller: true | |
41 | }); | |
42 | </script> | |
43 | </body> | |
44 | </html> |