actually draw the graph
[dygraphs.git] / tests / customLabel.html
CommitLineData
8e4a6af3
DV
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="../dygraph-combined.js"></script>
285a6bda 8 <script type="text/javascript" src="../dygraph-canvas.js"></script>
8e4a6af3
DV
9 <script type="text/javascript" src="../dygraph.js"></script>
10 <script type="text/javascript" src="data.js"></script>
11 </head>
12 <body>
13 <p>Labels are transparent and repositioned:</p>
d16579a0 14 <div id="div_g14" style="width:600px; height:300px;"></div>
8e4a6af3
DV
15
16 <script type="text/javascript">
285a6bda 17 g14 = new Dygraph(
d16579a0 18 document.getElementById("div_g14"),
285a6bda 19 NoisyData, {
8e4a6af3
DV
20 rollPeriod: 14,
21 errorBars: true,
285a6bda 22 labelsDivWidth: 100,
8e4a6af3
DV
23 labelsDivStyles: {
24 'background-color': 'transparent',
285a6bda 25 'top': '210px'
8e4a6af3 26 },
285a6bda 27 labelsSeparateLines: true,
34fedff8 28 yAxisLabelWidth: 20
8e4a6af3
DV
29 }
30 );
31 </script>
32 </body>
33</html>