5 title
: 'Different color cycles',
6 setup
: function(parent
) {
8 "<div id='blah'></div>" +
10 "<button id='0'> first set</button>" +
11 "<button id='1'> second set</button>" +
12 "<button id='2'> undefined</button>" +
17 ['#284785', '#EE1111', '#8AE234'],
18 ['#444444', '#888888', '#DDDDDD'],
21 chart
= new Dygraph(document
.getElementById("blah"),
23 "10,12345,23456,34567\n" +
24 "11,12345,20123,31345\n",
31 function change(event
) {
32 chart
.updateOptions({colors
: colorSets
[event
.target
.id
]});
34 document
.getElementById("0").onclick
= change
;
35 document
.getElementById("1").onclick
= change
;
36 document
.getElementById("2").onclick
= change
;