Second step was to keep adding the results to local storage variables as each value arrives:
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Not sure if this is the most efficient method, but it works just fine.
Hi Peter,
Thank you for sharing this!
Not a problem.
Any tips on how to refresh a jqplot graph? Each time the graph updates, it simply writes directly over the last one making a mess.
I have tried the following:
-----------------------------------------------------------------------------------------------------var plot = JSON.parse(localStorage.getItem("plot"));
if(plot)
{
plot.destroy();
}
plot = $.jqplot(.....);
localStorage.setItem('plot', JSON.stringify(plot));
----------------------------------------------------------------------------------------------------Unfortunately I am unable to store and retrieve the 'plot' variable in local storage between plots. Each time I try to read it back from local storage, it is clear again.
Maybe there is a simple way of clearing the html object?
Hi Peter,
Here is how to delete jqplot:
pre$("#myplot").html("");/pre