Merge branch 'master' of github.com:danvk/dygraphs
[dygraphs.git] / tests / customLabel.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>Label styles</title>
6 <!--[if IE]>
7 <script type="text/javascript" src="../excanvas.js"></script>
8 <![endif]-->
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
15 <script type="text/javascript" src="data.js"></script>
16 </head>
17 <body>
18 <p>Labels are transparent and repositioned:</p>
19 <div id="div_g14" style="width:600px; height:300px;"></div>
20
21 <script type="text/javascript">
22 g14 = new Dygraph(
23 document.getElementById("div_g14"),
24 NoisyData, {
25 rollPeriod: 14,
26 errorBars: true,
27 labelsDivWidth: 100,
28 labelsDivStyles: {
29 'backgroundColor': 'transparent',
30 },
31 labelsSeparateLines: true,
32 yAxisLabelWidth: 20
33 }
34 );
35 </script>
36 </body>
37 </html>