Commit | Line | Data |
---|---|---|
02ecfa7a DV |
1 | <html> |
2 | <head> | |
3 | <title>labelsKMB</title> | |
4 | <!--[if IE]> | |
5 | <script type="text/javascript" src="excanvas.js"></script> | |
6 | <![endif]--> | |
7 | <script type="text/javascript" src="../dygraph-combined.js"></script> | |
8 | <script type="text/javascript" src="../dygraph-canvas.js"></script> | |
9 | <script type="text/javascript" src="../dygraph.js"></script> | |
10 | </head> | |
11 | <body> | |
12 | <p>labelsKMB:</p> | |
13 | <div id="labelsKMB" style="width:600px; height: 300px;"></div> | |
14 | ||
15 | <p>labelsKMG:</p> | |
16 | <div id="labelsKMG2" style="width:600px; height: 300px;"></div> | |
17 | ||
18 | <p>The curves are exponentials. Zooming in should reveal each of the 'K', | |
19 | 'M', 'B', etc. labels.</p> | |
20 | ||
21 | <script type="text/javascript"> | |
22 | var data = []; | |
23 | for (var i = 0, n = 1; i < 43; i++, n *= 2) { | |
24 | data.push([i, n]); | |
25 | } | |
26 | ||
27 | new Dygraph(document.getElementById("labelsKMB"), data, { labelsKMB: true }); | |
28 | new Dygraph(document.getElementById("labelsKMG2"), data, { labelsKMG2: true }); | |
29 | </script> | |
30 | </body> | |
31 | </html> |