xieziyu / ngx-echarts

An angular (ver >= 2.x) directive for ECharts (ver >= 3.x)
https://xieziyu.github.io/ngx-echarts/
MIT License
1.11k stars 198 forks source link

实例执行getDataURL()报错 #159

Open chenji336 opened 5 years ago

chenji336 commented 5 years ago

实例通过onChartInit获取,获取之后执行ec.getDataURL可以,但是ec.getDataURL()就会报错,错误如下,我想是不是上下文关系 ERROR TypeError: Cannot read property 'get' of undefined at za.Ew.getRenderedCanvas (echarts.min.js:formatted:1) at za.Ew.getDataURL (echarts.min.js:formatted:1) at StatsComponent.push../src/app/project/data-view/stats/stats.component.ts.StatsComponent.onChartInit (stats.component.ts:295)

zuozuozuosuccess commented 2 months ago

我也遇到了一样问题,请问你解决了吗