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