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/04/27 13:54:33 UTC

[GitHub] [incubator-echarts] amiraziz opened a new issue #12511: click on graph node not fire for second time

amiraziz opened a new issue #12511:
URL: https://github.com/apache/incubator-echarts/issues/12511


   ### Version
   4.7.0
   
   ### Steps to reproduce
   when i click on node for second time, it not fire click event but when i click on edge it works!
   
   ` const chart = document.getElementById('graphContainer');
       const myChart = echarts.init(chart);
       const option = {
           tooltip: {show: true, formatter: "{c0}"},
           animationDuration: 100,
           animationEasingUpdate: 'elasticInOut',
           series: [{
               type: 'graph',
               layout: 'force',
               animation: false,
               symbolSize: [30, 30],
               animationDurationUpdate: 0,
               emphasis: {
                   itemStyle: {
                       borderColor: null,
                       borderWidth: null,
                       color: "#2359c0",
                       shadowBlur: null,
                       shadowColor: "rgba(0, 0, 0, 0.3)"
                   }
               },
               label: {
                   position: 'right',
                   formatter: '{b}'
               },
               draggable: true,
               data: result.nodes,
               force: {
                   edgeLength: 150,
                   gravity: 0.1,
                   repulsion: 250,
               },
               edges: result.links,
               edgeSymbol: ['arrow'],
               edgeLabel: {fontSize: 10},
               focusNodeAdjacency: true,
               roam: true,
               lineStyle: {opacity: 0.9, width: 1.5, curveness: 0.1, color: '#682F2F'}
           }]
       };
       myChart.setOption(option);
       myChart.on('click', function (params) {
           console.log(params); // do whatever you want with another chart say chartTwo here
           if (params.dataType === 'edge') {
   
           } else if (params.dataType === 'node') {
   
           }
           alert("chartOne clicked");
       });`
   
   ### What is expected?
   click event fire every time i click on graph node 
   
   ### What is actually happening?
   i need preview extra info about node, not only for first time.
   
   <!-- 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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12511: click on graph node not fire for second time

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12511:
URL: https://github.com/apache/incubator-echarts/issues/12511#issuecomment-620001538


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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


[GitHub] [incubator-echarts] susiwen8 commented on issue #12511: click on graph node not fire for second time

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12511:
URL: https://github.com/apache/incubator-echarts/issues/12511#issuecomment-620990481


   Didn't reproduce this problem by using https://echarts.apache.org/examples/zh/editor.html?c=graph-simple `data` and `edges`' value  


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