4 <title>Label styles
</title>
6 For production (minified) code, use:
7 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
11 <script type=
"text/javascript" src=
"data.js"></script>
12 <style type=
"text/css">
14 background-color: rgba(
200,
200,
255,
0.75) !important;
16 border:
1px solid #
000;
18 box-shadow:
4px
4px
4px #
888;
27 <p>This page demonstrates different values for the
<code><a href=
"http://dygraphs.com/options.html#legend">legend
</a></code> option. Mouse over the charts to see the different behaviors.
</p>
28 <pre>legend:
"follow":
</pre>
29 <div id=
"follow" style=
"width:600px; height:300px;"></div>
31 <pre>legend:
"always":
</pre>
32 <div id=
"always" style=
"width:600px; height:300px;"></div>
34 <pre>legend:
"never":
</pre>
35 <div id=
"never" style=
"width:600px; height:300px;"></div>
37 <pre>legend:
"onmouseover" (the default):
</pre>
38 <div id=
"default" style=
"width:600px; height:300px;"></div>
40 <script type=
"text/javascript">
41 function extend(obj1, obj2) {
56 labelsSeparateLines: true
59 g_follow = new Dygraph(
60 document.getElementById('follow'),
62 extend(baseOpts, {legend: 'follow'}));
64 g_always = new Dygraph(
65 document.getElementById('always'),
67 extend(baseOpts, {legend: 'always'}));
69 g_never = new Dygraph(
70 document.getElementById('never'),
72 extend(baseOpts, {legend: 'never'}));
74 g_default = new Dygraph(
75 document.getElementById('default'),