You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/12/29 00:14:08 UTC

[GitHub] [incubator-echarts] plainheart commented on issue #13891: getDataURL not working on tree

plainheart commented on issue #13891:
URL: https://github.com/apache/incubator-echarts/issues/13891#issuecomment-751902438


   It shouldn't call `getDataURL` immediately after `setOption` for the rendering is asynchronized.
   Instead, we should listen to the [`finished`](https://echarts.apache.org/next/en/api.html#events.finished) event like this,
   ```js
   myChart.on('finished', function() {
       img.src = myChart.getDataURL();
   });
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org