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 2019/11/07 07:43:36 UTC

[GitHub] [incubator-echarts] kibbon opened a new issue #11585: Fail to dispatch graphRoam action to control Center&Zoom

kibbon opened a new issue #11585: Fail to dispatch graphRoam action to control Center&Zoom
URL: https://github.com/apache/incubator-echarts/issues/11585
 
 
   <!--
   Please Use https://ecomfe.github.io/echarts-issue-helper to create the issue.
   Otherwise, it will be closed immediately.
   Questions in the form of *How to use ...* should be at Stack Overflow rather than GitHub issue list.
   
   请注意,所有 issue 必须由 https://ecomfe.github.io/echarts-issue-helper/ 创建,不然将会被直接关闭。建议使用英文提问。
   Issues 中不要问「如何使用 ECharts 实现……功能」的问题,相关问题请到 SegmentFault 或 Stack Overflow 提问,详见上面的链接。
   -->
   
   This issue is not created by [echarts-issue-helper](https://ecomfe.github.io/echarts-issue-helper) and will be soon closed.
   
   I make a graph chart and set **roam = 'scale'**, for performance of this graph I need to handle dragging with CSS Transform (**avoid re-rendering when interactive occurred**), so this graph need to transform to target status during mouseup triggered (like leaflet). I use **dispatchAction** to solve it but nothing happened in my view, since this action could be captured by custom event listener.
   Here is my code:
   `
           graph.on('graphRoam', function (params) {
               console.log(params);
           });
   
           graph.dispatchAction({
               seriesId: "directGrpah0", // same as other graphRoam event log, such as mouse scrolling
               type: 'graphRoam',
               zoom: 2,
               originX: 704,
               originY: 448,
           });
   // only print log but nothing change on my view
   `

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


With regards,
Apache Git Services

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