fukai007 opened a new issue #15135:
URL: https://github.com/apache/echarts/issues/15135


   ### Version
   5.1.2
   
   ### Steps to reproduce
   目的: 使用离屏渲染生成图片(不想把图表显示在页面,想显示导出的base64图片[myChart.getDataURL()])
   
   ### What is expected?
   列表有很多数据,不想都是用echarts,而是用一个echarts实例循环导出图片后再加载图片(内容大小不变只是数据发生变化)
   
   ### What is actually happening?
       var off_ce = document.createElement("canvas");
       off_ce.classList.add("chart");
       off_ce.style = "width:50px;height:50px;";
       window.off_ce = off_ce;
       var myChart = echarts.init(off_ce);
       myChart.setOption(this.option);
       console.log("sssss", myChart.getDataURL());
       window.imgvc.src = myChart.getDataURL();
   
   导出不成功
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to