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/03/21 06:15:06 UTC

[GitHub] [echarts] oaoxd0314 opened a new issue #16710: [Question] - series-graph 指定某特定 node 置中

oaoxd0314 opened a new issue #16710:
URL: https://github.com/apache/echarts/issues/16710


   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   目前在 graph 的 layout : force,圖出現的樣式會很不自然
   
   ![image](https://user-images.githubusercontent.com/48309943/159212680-7dc2d6ac-e9a7-4d5c-8d85-d07489562682.png)
   
   ### Current Behavior
   
   我現在是調整 force 的一些參數 讓他竟量能夠不會擺錯重心
   
   ```javascript=
   option = {
     tooltip: {},
   
     series: [
       {
         type: "graph",
         data: data.nodes,
         categories: data.categories,
         edges: data.edges,
         layout: "force",
         lineStyle: {
           color: "source",
           curveness: 0.3
         },
         draggable: true,
         force: {
           // layoutAnimation: false,
           // repulsion: 100,
           edgeLength: [50, 100],
           gravity: 0.1
         }
       }
     ]
   };
   ```
   
   但結果不如預期
   
   ### Expected Behavior
   
   請問要如何才能在 graph 圖裡,讓某一個特定的節點置中,並讓連接的下一層以更自然的方式散佈呢,感謝
   
   ### Environment
   
   ```markdown
   - OS: macOS 
   - Browser:Chrome
   - Framework: React v17^
   ```
   
   
   ### Any additional comments?
   
   _No response_


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #16710: [Question] - series-graph 指定某特定 node 置中

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


   @oaoxd0314 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Question] - series-graph specifies that a particular node is centered
   
   **BODY**
   
   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   Currently in the layout of graph: force, the style of the graph will be very unnatural
   
   ![image](https://user-images.githubusercontent.com/48309943/159212680-7dc2d6ac-e9a7-4d5c-8d85-d07489562682.png)
   
   ### Current Behavior
   
   I am now adjusting some parameters of force so that he can not put the wrong center of gravity
   
   ```javascript=
   option = {
     tooltip: {},
   
     series: [
       {
         type: "graph",
         data: data.nodes,
         categories: data.categories,
         edges: data.edges,
         layout: "force",
         lineStyle: {
           color: "source",
           curveness: 0.3
         },
         draggable: true,
         force: {
           // layoutAnimation: false,
           // repulsion: 100,
           edgeLength: [50, 100],
           gravity: 0.1
         }
       }
     ]
   };
   ````
   
   But the result is not as expected
   
   ### Expected Behavior
   
   How can I center a specific node in the graph and let the next layer of connections spread out in a more natural way, thanks
   
   ### Environment
   
   ````markdown
   - OS: macOS
   - Browser: Chrome
   - Framework: React v17^
   ````
   
   
   ### Any additional comments?
   
   _No response_
   </details>


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