3 <title>visibility
</title>
5 <script type=
"text/javascript" src=
"../excanvas.js"></script>
7 <script type=
"text/javascript" src=
"../strftime/strftime-min.js"></script>
8 <script type=
"text/javascript" src=
"../rgbcolor/rgbcolor.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
10 <script type=
"text/javascript" src=
"../dygraph.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>
25 <p>g.visibility() =
<span id=
"visibility"></span></p>
28 <script type=
"text/javascript">
30 document.getElementById(
"div_g"),
34 visibility: [false, true]
39 function setStatus() {
40 document.getElementById(
"visibility").innerHTML =
41 g.visibility().toString();
45 g.setVisibility(parseInt(el.id), el.checked);