5 <script type=
"text/javascript" src=
"excanvas.js"></script>
7 <script type=
"text/javascript" src=
"../dygraph-combined.js"></script>
8 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph.js"></script>
10 <script type=
"text/javascript" src=
"data.js"></script>
13 <h3>Click the check boxes to toggle series visibility
</h3>
14 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
16 <p><b>Show Series:
</b></p>
18 <input type=checkbox
id=
"0" onClick=
"change(this)">
19 <label for=
"0"> A
</label><br/>
20 <input type=checkbox
id=
"1" checked
onClick=
"change(this)">
21 <label for=
"1"> B
</label>
24 <p>g.visibility() =
<span id=
"visibility"></span></p>
27 <script type=
"text/javascript">
29 document.getElementById(
"div_g"),
33 visibility: [false, true]
38 function setStatus() {
39 document.getElementById(
"visibility").innerHTML =
40 g.visibility().toString();
44 g.setVisibility(parseInt(el.id), el.checked);