anuj9196 opened a new issue #11809: Add support for API for toolbox features 
like dataView, magicType
URL: https://github.com/apache/incubator-echarts/issues/11809
 
 
   ### What problem does this feature solve?
   There are API available for two toolbox features
   1. saveAsImage: Using 
[echartsInstance.getDataURL](https://www.echartsjs.com/en/api.html#echartsInstance.getDataURL)
   2. dataZoom: Using 
[action.dataZoom](https://www.echartsjs.com/en/api.html#action.dataZoom)
   
   If API is made available for `dataView` and `magicType`, external action 
buttons can be used to trigger these functionalities.
   
   In many applications, external action buttons can be used configured 
according to the application UI requirement.
   
   ### What does the proposed API look like?
   May be action button for `dataView` can be provided like
   ```
   action.dataView.toggle()
   // or
   action.dataView.show() and action.dataView.hide()
   ```
   
   Similar can be for `magicType` like
   ```
   dispatchAction({
       type: 'magicType',
       switching: 'line'                      // or `bar` or `stack`, etc.
   })
   ```
   
   <!-- 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]


With regards,
Apache Git Services

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

Reply via email to