将echarts生成图片方法
function getimage(){
var img = new Image;
img.style.width = “200px”;
img.style.height = “125x”;
img.style.display=“none”;
img.id=“imgage”;
img.src = mychart1.getDataURL({ //mychart1的option
type:“png”,
pixelRatio: 2,
backgroundColor: ‘#fff’
})
return img;
}
图片共享网站:http://sharepic.vip