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/28 01:14:00 UTC

[GitHub] [incubator-echarts] plainheart commented on issue #13875: Add an reset api to reset the tree to initial status

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


   Hi, I think we can currently use the [`dispatchAction` API with the type of `restore`](https://echarts.apache.org/next/en/api.html#action.toolbox.restore) to restore the chart. It's from the `toolbox` component.
   ```js
   chart.dispatchAction({
       type: 'restore'
   });
   ```
   
   See here for the demo: https://www.makeapie.com/editor.html?c=xQHxllP7G8&v=1


----------------------------------------------------------------
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