kenghuo commented on issue #9515: magic
URL: 
https://github.com/apache/incubator-echarts/issues/9515#issuecomment-443951821
 
 
   let option = Object.getOwnPropertyNames(chart._componentsMap) ;
   
   /* 获取图表中 magicType 模拟line 点击 */
   option.map(item => {
        item.includes('toolbox') && 
           
chart._componentsMap[item]._features['magicType'].model.iconPaths.line.trigger('click');
    });
   
   可以实现效果

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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