lkq2016 opened a new issue #13914: URL: https://github.com/apache/incubator-echarts/issues/13914
### Version 5.0 ### Steps to reproduce 1.https://echarts.apache.org/next/examples/zh/editor.html?c=bar-simple 2.echarts.getInstanceByDom(document.getElementById("chart-panel")).getDataURL({ pixelRatio: 2, backgroundColor: '#fff' }); 3.Uncaught TypeError: Cannot read property 'dpr' of undefined at Hv (echarts.min.js:22) at Kv (echarts.min.js:22) at ox.getRenderedCanvas (echarts.min.js:22) at i_.getRenderedCanvas (echarts.min.js:22) at i_.getDataURL (echarts.min.js:22) at <anonymous>:1:66 Hv @ echarts.min.js:22 Kv @ echarts.min.js:22 ox.getRenderedCanvas @ echarts.min.js:22 i_.getRenderedCanvas @ echarts.min.js:22 i_.getDataURL @ echarts.min.js:22 (anonymous) @ VM928:1 ### What is expected? 导出图片 ### What is actually happening? error <!-- This issue is generated by echarts-issue-helper. 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]
