Add new issue and PR templates
[dygraphs.git] / tests / customLabelCss3.html
CommitLineData
623bbb49
JL
1<!DOCTYPE html>
2<html>
3 <head>
623bbb49 4 <title>Label styles</title>
623bbb49
JL
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
fbd6834a 9 <script type="text/javascript" src="../dist/dygraph.js"></script>
623bbb49
JL
10
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <p>Labels are styled with css3:</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 'backgroundColor': 'rgba(200, 200, 255, 0.75)',
0e261c43
DV
26 'padding': '4px',
27 'border': '1px solid black',
28 'borderRadius': '10px',
29 'boxShadow': '4px 4px 4px #888'
30 },
623bbb49 31 labelsSeparateLines: true,
2b66af4f
DV
32 axes: {
33 y: {
34 axisLabelWidth: 20
35 }
36 }
623bbb49
JL
37 }
38 );
39 </script>
40 </body>
41</html>