[GitHub] [echarts] 14glwu commented on issue #13645: Limit connected action in echarts.connect
14glwu commented on issue #13645: URL: https://github.com/apache/echarts/issues/13645#issuecomment-809144829 > ### What problem does this feature solve? > In some cases, only part of the action wants to be connected. Like the case in #13630 > > ### What does the proposed API look like? > The second parameter is a list of fired events. > > ```ts > echarts.connect([chart1, chart2], ['dataZoom', 'visualMap']); > ``` I read source code, find this method to avoid be connected, you can try it. ![image](https://user-images.githubusercontent.com/26249572/112801963-25e91280-90a4-11eb-85a0-fbf56384c8a8.png) ```javascript chartInstance.dispatchAction({ type: 'legendUnSelect', escapeConnect: true, batch: [ { name: key, selected: legendsSelected, }, ], }); ``` -- 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: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [echarts] 14glwu commented on issue #13645: Limit connected action in echarts.connect
14glwu commented on issue #13645: URL: https://github.com/apache/echarts/issues/13645#issuecomment-809040394 Or can echarts support 'escapeConnect' to avoid connect when dispatchAction `chartInstance.dispatchAction({ type: 'legendSelect', name: 'test', escapeConnect: true });` -- 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: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [echarts] 14glwu commented on issue #13645: Limit connected action in echarts.connect
14glwu commented on issue #13645: URL: https://github.com/apache/echarts/issues/13645#issuecomment-808870981 同样,想要这个功能,能设置哪些action联动 -- 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: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org