4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>visibility
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
10 For production (minified) code, use:
11 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
13 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
15 <script type=
"text/javascript" src=
"data.js"></script>
18 <h3>Click the check boxes to toggle series visibility
</h3>
19 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
21 <p><b>Show Series:
</b></p>
23 <input type=checkbox
id=
"0" onClick=
"change(this)">
24 <label for=
"0"> A
</label><br/>
25 <input type=checkbox
id=
"1" checked
onClick=
"change(this)">
26 <label for=
"1"> B
</label>
29 <p>g.visibility() =
<span id=
"visibility"></span></p>
32 <script type=
"text/javascript">
34 document.getElementById(
"div_g"),
38 visibility: [false, true]
43 function setStatus() {
44 document.getElementById(
"visibility").innerHTML =
45 g.visibility().toString();
49 g.setVisibility(parseInt(el.id), el.checked);