Plot a new series on an already-rendered jquery flot graph -


I have a float graph which is already providing a data series, i.e.

  var plot = $ Plot ($ ('# placeholder'), [data1], options);   

At a later point, I will get some new data which I have to plot on the same graph as a separate data series. Is there any way that I can just add this new data series to the current graph, and then do not need to recreate the whole graph? That is, I want to avoid making another call like this:

  var plot = $ .plot ($ ('# placeholder'), [data1, data2], options) ;   

and instead make a call like this:

  plot.addSeries ([data2], option);   

Thanks!

@Black Box Operations are general descriptions quite well. When you repeatedly $ If you call Plot (...) then there are some problems with the memory leaks before the latest version (0.7). Either you can get the details of setData, setupGrid, and can attract methods.

Comments