views:

262

answers:

1

Hi is ther a recommended way to clear a jquery flot graph? I couldn't find anything the in the api...

+2  A: 

By "clear" do you mean "nuke the entire graph," or just clear the data?

To nuke the entire graph: $('#canvas_id').html('');

To clear the data, just call the usual $.plot(placeholder, data, options); where data is empty.

Matt Ball
is there any significance with respect to nuking...?
deostroll