JQuery Flot: clear graph
By "clear" do you mean "nuke the entire graph," or just clear the data?
To nuke the entire graph: $('#canvas_id').empty();
To clear the data, just call the usual $.plot(placeholder, data, options);
where data is empty.
By "clear" do you mean "nuke the entire graph," or just clear the data?
To nuke the entire graph: $('#canvas_id').empty();
To clear the data, just call the usual $.plot(placeholder, data, options);
where data is empty.