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 | 28 | labelsDivStyles: { |
104ea5ad | 29 | 'backgroundColor': 'transparent', |
8e4a6af3 | 30 | }, |
285a6bda | 31 | labelsSeparateLines: true, |
34fedff8 | 32 | yAxisLabelWidth: 20 |
8e4a6af3 DV |
33 | } |
34 | ); | |
35 | </script> | |
36 | </body> | |
37 | </html> |