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/10/30 08:40:47 UTC

[GitHub] [incubator-echarts] Witee commented on issue #11928: graph 坐标xy怎么固定位置,多一个节点位置就变一次 好烦人

Witee commented on issue #11928:
URL: https://github.com/apache/incubator-echarts/issues/11928#issuecomment-719422567


   没人回复啊, 我也想知道为什么只有一个点的时候不管怎么设置 x,y 都是在中间.
   
   配置如下
   ```
   option = {
       title: {
           text: 'Graph 简单示例'
       },
       series: [
           {
               type: 'graph',
               layout: 'none',
               symbolSize: 50,
               label: {
                   show: true
               },
               edgeSymbol: ['circle', 'arrow'],
               edgeSymbolSize: [4, 10],
               edgeLabel: {
                   fontSize: 20
               },
               data: [{
                   name: '节点1',
                   x: 100,
                   y: 100,
               }],
           }
       ]
   };
   ```
   把上面配置放到下面链接里,就能到效果.
   https://echarts.apache.org/examples/zh/editor.html?c=graph-simple


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