gmmoraesbr / flot

Automatically exported from code.google.com/p/flot
0 stars 0 forks source link

Select plugin: color change #370

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes I need to change the color of the selection while it is being 
updated. It would be nice to add a public method to set the options like 
"color" of the selection after the instatiation of the "$.plot" object already 
happened. I added a public method myself and it works perfectly to change 
options of the selection on runtime. 

function setSelectionOptions(options) {
     var o = plot.getOptions();
     $.extend(o.selection,options);
}

Best regards,
Mitja

Original issue reported on code.google.com by mitjako...@gmail.com on 28 Jun 2010 at 12:23