4 <title>visibility
</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>
14 <h3>Click the check boxes to toggle series visibility
</h3>
15 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
17 <p><b>Show Series:
</b></p>
19 <input type=checkbox
id=
"0" onClick=
"change(this)">
20 <label for=
"0"> A
</label><br/>
21 <input type=checkbox
id=
"1" checked
onClick=
"change(this)">
22 <label for=
"1"> B
</label><br/>
23 <input type=checkbox
id=
"2" checked
onClick=
"change(this)">
24 <label for=
"2"> C
</label>
27 <p>g.visibility() =
<span id=
"visibility"></span></p>
30 <script type=
"text/javascript">
32 document.getElementById(
"div_g"),
36 visibility: [false, true, true]
41 function setStatus() {
42 document.getElementById(
"visibility").innerHTML =
43 g.visibility().toString();
47 g.setVisibility(parseInt(el.id), el.checked);