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