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 2022/08/24 08:40:13 UTC

[GitHub] [echarts] weihaopeng opened a new issue, #17562: [Feature] Show related node's label when emphasis a node in force graph with hideOverlap

weihaopeng opened a new issue, #17562:
URL: https://github.com/apache/echarts/issues/17562

   ### What problem does this feature solve?
   
   I use `labelLayout.hideOverlap` attr to render a tidy canvas  when I have many nodes with label. When I emphasis a node, I can see itself is highlight, the related node and their link is highlight. But the related nodes' name only show when I emphasis these nodes one by one.
   
   In some situation such as present a knowledge graph, the label of a node is also it's name. The user need to see the nodes' name that related to a specific node.
   
   I try to add a listener to mouse event, then show all labels when mousemove and hide overlap when mouseout. I show all labels by modify all datas' label attr, then use the setOption function. But because of the large data, the canvas stuck about 1s, what is unacceptable because the mousemove is a frequent event.
   
   What it looks like now: 
   
   ![image](https://user-images.githubusercontent.com/33681454/186368072-08262ec9-6795-4e2b-86b3-ccf700833bea.png)
   
   What I hope is:
   
   ![image](https://user-images.githubusercontent.com/33681454/186369982-c04d46ed-65bc-4c12-8d5d-0a8f8e6095f9.png)
   
   
   ### What does the proposed API look like?
   
   Maybe add a series.label.showWhenRelated attribute? Like this:
   ```
   option: {
     series: [{
       type: 'graph',
       layout: 'force',
       ...
       label: {
         show: true,
         position: 'right',
         formatter: '{b}',
         showWhenRelated: true
       },
       labelLayout: {
         hideOverlap: true
       }
   ```
   
   Manual using mouse to highlight, and using dispatchAction(multiple nodes) should archieve the expected effect.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

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


Re: [I] [Feature] Show related node's label when emphasis a node in force graph with hideOverlap [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17562:
URL: https://github.com/apache/echarts/issues/17562#issuecomment-2322335054

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Feature] Show related node's label when emphasis a node in force graph with hideOverlap [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17562:
URL: https://github.com/apache/echarts/issues/17562#issuecomment-2307809114

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Feature] Show related node's label when emphasis a node in force graph with hideOverlap [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #17562: [Feature] Show related node's label when emphasis a node in force graph with hideOverlap
URL: https://github.com/apache/echarts/issues/17562


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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