Commit | Line | Data |
---|---|---|
623bbb49 JL |
1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head> | |
fd6b8dad | 4 | <link rel="stylesheet" href="../dist/dygraph.css"> |
623bbb49 | 5 | <title>Label styles</title> |
fbd6834a | 6 | <script type="text/javascript" src="../dist/dygraph.js"></script> |
623bbb49 JL |
7 | |
8 | <script type="text/javascript" src="data.js"></script> | |
93a5bb4c DV |
9 | <style> |
10 | .dygraph-legend { | |
11 | background-color: rgba(200, 200, 255, 0.75); | |
12 | padding: 4px; | |
13 | border: 1px solid black; | |
14 | border-radius: 10px; | |
15 | box-shadow: 4px 4px 4px #888; | |
16 | width: 100px; | |
17 | } | |
18 | </style> | |
623bbb49 JL |
19 | </head> |
20 | <body> | |
21 | <p>Labels are styled with css3:</p> | |
22 | <div id="div_g14" style="width:600px; height:300px;"></div> | |
23 | ||
24 | <script type="text/javascript"> | |
25 | g14 = new Dygraph( | |
26 | document.getElementById("div_g14"), | |
27 | NoisyData, { | |
28 | rollPeriod: 14, | |
29 | errorBars: true, | |
623bbb49 | 30 | labelsSeparateLines: true, |
2b66af4f DV |
31 | axes: { |
32 | y: { | |
33 | axisLabelWidth: 20 | |
34 | } | |
35 | } | |
623bbb49 JL |
36 | } |
37 | ); | |
38 | </script> | |
39 | </body> | |
40 | </html> |