Commit | Line | Data |
---|---|---|
8e4a6af3 DV |
1 | <html> |
2 | <head> | |
3 | <title>Label styles</title> | |
4 | <!--[if IE]> | |
5 | <script type="text/javascript" src="excanvas.js"></script> | |
6 | <![endif]--> | |
d37dca40 DV |
7 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> |
8 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> | |
285a6bda | 9 | <script type="text/javascript" src="../dygraph-canvas.js"></script> |
8e4a6af3 DV |
10 | <script type="text/javascript" src="../dygraph.js"></script> |
11 | <script type="text/javascript" src="data.js"></script> | |
12 | </head> | |
13 | <body> | |
14 | <p>Labels are transparent and repositioned:</p> | |
d16579a0 | 15 | <div id="div_g14" style="width:600px; height:300px;"></div> |
8e4a6af3 DV |
16 | |
17 | <script type="text/javascript"> | |
285a6bda | 18 | g14 = new Dygraph( |
d16579a0 | 19 | document.getElementById("div_g14"), |
285a6bda | 20 | NoisyData, { |
8e4a6af3 DV |
21 | rollPeriod: 14, |
22 | errorBars: true, | |
285a6bda | 23 | labelsDivWidth: 100, |
8e4a6af3 DV |
24 | labelsDivStyles: { |
25 | 'background-color': 'transparent', | |
285a6bda | 26 | 'top': '210px' |
8e4a6af3 | 27 | }, |
285a6bda | 28 | labelsSeparateLines: true, |
34fedff8 | 29 | yAxisLabelWidth: 20 |
8e4a6af3 DV |
30 | } |
31 | ); | |
32 | </script> | |
33 | </body> | |
34 | </html> |