Mar*_*ark 29
这是我可以编写的最简单的例子:
//after creating your plot do
var imgData = $('#chart1').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
$('#imgChart1').append(imgElem);?????????????????????????????????????????????????? // append the img to the DOM
Run Code Online (Sandbox Code Playgroud)
小提琴这里.