cf3e0e3245ae4f9e987c4d3ae8c12d77b18254db
4 name
: "Color visibility",
5 title
: 'The lines should maintain their colors as their visibility is toggled.',
6 setup
: function(parent
) {
8 "<div id='blah'></div>" +
9 "<p><b>Display: </b>" +
10 "<input type=checkbox id=0 onClick='change(this)' checked>" +
11 "<label for='0'> a</label>" +
12 "<input type=checkbox id=1 onClick='change(this)' checked>" +
13 "<label for='1'> b</label>" +
14 "<input type=checkbox id=2 onClick='change(this)' checked>" +
15 "<label for='2'> c</label>" +
19 var g
= new Dygraph(document
.getElementById("blah"),
21 "10,12345,23456,34567\n" +
22 "11,12345,20123,31345\n",
26 colors
: ['#284785', '#EE1111', '#8AE234'],
27 visibility
: [true, true, true]
31 g
.setVisibility(el
.id
, el
.checked
);