Add a function like:
createImagePlot = function(){
//after creating your plot do
var imgData = $('#plot').jqplotToImageStr({}); // given the div id of your plot, get the img data
var imgElem = $('<img/>').attr('src',imgData); // create an img and add the data to it
$('#imgChart').append(imgElem);// append the img to the DOM
}
Then add a div element with id=’imgChart’ and a button or something for calling createImagePlot after first generating the plot in a div with id=’plot’
To save, you then right click on image as usual – although javascript could possibly be used to trigger that automatically.
--
You received this message because you are subscribed to the Google Groups "jqplot-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jqplot-users...@googlegroups.com.
To post to this group, send email to jqplot...@googlegroups.com.
Visit this group at http://groups.google.com/group/jqplot-users.
For more options, visit https://groups.google.com/d/optout.
You might google something like ‘Jquery simulate right click save as’ and look for a solution. I haven’t tried it. Perhaps someone else on this list has.
B.