4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>color 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>
17 <p>The lines should maintain their colors as their visibility is toggled.
</p>
21 <input type=checkbox id=
0 onClick=
"change(this)" checked
>
22 <label for=
"0"> a
</label>
23 <input type=checkbox id=
1 onClick=
"change(this)" checked
>
24 <label for=
"1"> b
</label>
25 <input type=checkbox id=
2 onClick=
"change(this)" checked
>
26 <label for=
"2"> c
</label>
29 <script type=
"text/javascript">
30 chart = new Dygraph(document.getElementById(
"blah"),
32 "10,12345,23456,34567\n" +
33 "11,12345,20123,31345\n",
37 colors: ['#
284785', '#EE1111', '#
8AE234'],
38 visibility: [true, true, true]
42 chart.setVisibility(el.id, el.checked);