add back Dygraph.floatFormat
[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 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
10 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
11 <script type="text/javascript" src="../dygraph-canvas.js"></script>
12 <script type="text/javascript" src="../dygraph.js"></script>
13 <script type="text/javascript" src="data.js"></script>
14 </head>
15 <body>
16 <p>Labels are transparent and repositioned:</p>
17 <div id="div_g14" style="width:600px; height:300px;"></div>
18
19 <script type="text/javascript">
20 g14 = new Dygraph(
21 document.getElementById("div_g14"),
22 NoisyData, {
23 rollPeriod: 14,
24 errorBars: true,
25 labelsDivWidth: 100,
26 labelsDivStyles: {
27 'background-color': 'transparent',
28 'top': '210px'
29 },
30 labelsSeparateLines: true,
31 yAxisLabelWidth: 20
32 }
33 );
34 </script>
35 </body>
36 </html>