Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
d4f353ca DV |
2 | <html> |
3 | <head> | |
10494b48 | 4 | <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> |
d4f353ca DV |
5 | <title>demo</title> |
6 | <!--[if IE]> | |
7 | <script type="text/javascript" src="../excanvas.js"></script> | |
8 | <![endif]--> | |
9 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> | |
10 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> | |
11 | <script type="text/javascript" src="../dygraph-canvas.js"></script> | |
12 | <script type="text/javascript" src="../dygraph.js"></script> | |
13 | </head> | |
14 | <body> | |
15 | <h2>Demo</h2> | |
16 | <font size=-1>(Mouse over to highlight individual values. Click and drag to zoom. Double-click to zoom out.)</font><br/> | |
17 | <table><tr><td> | |
18 | <div id="demodiv"></div> | |
19 | </td><td valign=top> | |
20 | <div id="status" style="width:200px; font-size:0.8em; padding-top:5px;"></div> | |
21 | </td> | |
22 | </tr></table> | |
23 | <script type="text/javascript"> | |
24 | g = new Dygraph( | |
25 | document.getElementById("demodiv"), | |
26 | "Date,Value\n" + | |
27 | "1776/01/01,100\n" + | |
28 | "1876/01/01,200\n" + | |
29 | "1976/01/01,150\n", | |
30 | { | |
31 | rollPeriod: 1, | |
32 | labelsDiv: document.getElementById('status'), | |
33 | labelsSeparateLines: true, | |
34 | labelsKMB: true, | |
35 | colors: ["rgb(51,204,204)", | |
36 | "rgb(255,100,100)", | |
37 | "#00DD55", | |
38 | "rgba(50,50,200,0.4)"], | |
d4f353ca DV |
39 | width: 480, |
40 | height: 320 | |
41 | } | |
42 | ); | |
43 | </script> | |
44 | </body> | |
45 | </html> |