4 <title>color visibility
</title>
6 <script type=
"text/javascript" src=
"../excanvas.js"></script>
8 <script type=
"text/javascript" src=
"../strftime/strftime-min.js"></script>
9 <script type=
"text/javascript" src=
"../rgbcolor/rgbcolor.js"></script>
10 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
11 <script type=
"text/javascript" src=
"../dygraph.js"></script>
14 <p>The lines should maintain their colors as their visibility is toggled.
</p>
18 <input type=checkbox id=
0 onClick=
"change(this)" checked
>
19 <label for=
"0"> a
</label>
20 <input type=checkbox id=
1 onClick=
"change(this)" checked
>
21 <label for=
"1"> b
</label>
22 <input type=checkbox id=
2 onClick=
"change(this)" checked
>
23 <label for=
"2"> c
</label>
26 <script type=
"text/javascript">
27 chart = new Dygraph(document.getElementById(
"blah"),
29 "10,12345,23456,34567\n" +
30 "11,12345,20123,31345\n",
34 colors: ['#
284785', '#EE1111', '#
8AE234'],
35 visibility: [true, true, true]
39 chart.setVisibility(el.id, el.checked);