In the latest JqPlot examples (see here, there are buttons underneath some charts that you can click, and a div slides down with the chart as an image, allowing you to right
When you got problems with the image output you have to change the jquery.jqplot.js. On some browsers the script stops of infinte loop (Chrome and Firefox).
change this code:
for (var i=0; i tagwidth) {
breaks.push(i);
w = '';
i--;
}
}
to this:
for (var i=0; i tagwidth && w.length > words[i].length) {
breaks.push(i);
w = '';
i--;
}
}
add this to your html:
and this to jquery after your jqplot-code:
$(document).ready(function(){
//after creating your plot do
var imgData = $('#chart').jqplotToImageStr({}); // given the div id of your plot, get the img data
var imgElem = $('
').attr('src',imgData); // create an img and add the data to it
$('#imgChart').append(imgElem); //
});
See a demo here