4 <link rel=
"stylesheet" href=
"../css/dygraph.css">
5 <title>visibility
</title>
7 For production (minified) code, use:
8 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
10 <script type=
"text/javascript" src=
"../dist/dygraph.js"></script>
12 <script type=
"text/javascript" src=
"data.js"></script>
15 <h3>Click the check boxes to toggle series visibility
</h3>
16 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
18 <p><b>Show Series:
</b></p>
20 <input type=checkbox
id=
"0" onClick=
"change(this)">
21 <label for=
"0"> A
</label><br/>
22 <input type=checkbox
id=
"1" checked
onClick=
"change(this)">
23 <label for=
"1"> B
</label><br/>
24 <input type=checkbox
id=
"2" checked
onClick=
"change(this)">
25 <label for=
"2"> C
</label>
28 <p>g.visibility() =
<span id=
"visibility"></span></p>
31 <script type=
"text/javascript">
33 document.getElementById(
"div_g"),
37 visibility: [false, true, true]
42 function setStatus() {
43 document.getElementById(
"visibility").innerHTML =
44 g.visibility().toString();
48 g.setVisibility(parseInt(el.id), el.checked);