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