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><br/>
27 <input type=checkbox
id=
"2" checked
onClick=
"change(this)">
28 <label for=
"2"> C
</label>
31 <p>g.visibility() =
<span id=
"visibility"></span></p>
34 <script type=
"text/javascript">
36 document.getElementById(
"div_g"),
40 visibility: [false, true, true]
45 function setStatus() {
46 document.getElementById(
"visibility").innerHTML =
47 g.visibility().toString();
51 g.setVisibility(parseInt(el.id), el.checked);