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