longfangsong opened a new issue #8181: 在力导向图中,无法将一个node 的link指向自身
URL: https://github.com/apache/incubator-echarts/issues/8181
 
 
   ### One-line summary [问题简述]
   
   在力导向图中,无法将一个node 的link指向自身
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.0.4
   + Browser version [浏览器类型和版本]: Safari 11.1、Chrome 65.0.3325.181
   + OS Version [操作系统类型和版本]: macOS 10.13.4 (17E199)
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   可以指向自身,就像像Neo4j中的那样
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       "tooltip": {
           "trigger": "item",
           "triggerOn": "click",
           "enterable": true,
           "hideDelay": 100,
           "backgroundColor": "rgba(255,255,255,1)",
           "borderRadius": 5,
           "padding": 14,
           "textStyle": {
               "color": "#000015"
           }
       },
       "series": [
           {
               "type": "graph",
               "layout": "force",
               "name": "页面关系",
               "roam": "move",
               "edgeSymbol": [
                   "",
                   "arrow"
               ],
               "data": [
                   {
                       "name": "Hello",
                       "id": "1"
                   }
               ],
               "links": [
                   {
                       "source": "1",
                       "target": "1"
                   }
               ],
               "label": {
                   "normal": {
                       "position": "inside",
                       "formatter": "{b}",
                       "show": true
                   }
               },
               "symbolSize": 50,
               "force": {
                   "edgeLength": 100,
                   "repulsion": 500
               },
               "draggable": true,
               "lineStyle": {
                   "normal": {
                       "color": "source",
                       "curveness": 0.3
                   }
               },
               "itemStyle": {
                   "color": "#DE95F9"
               }
           }
       ]
   }
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   无

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to