echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] 关系图circular,节点四个时,中间的连线曲率失效

Open cyrna opened this issue 3 years ago • 2 comments

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

option = { ... series: [ { type: 'graph', layout: 'circular', }, autoCurveness: 256, data: [ { name: 'Node 1', }, { name: 'Node 2', }, { name: 'Node 3', }, { name: 'Node 4', } ], //数据任意只要是四个节点 links:[ { source: 0, target: 1,

      label: {
        show: true
      },
      
    },
    {
      source: 'Node 2',
      target: 'Node 1',
      label: {
        show: true
      },
     
    },
    {
      source: 'Node 1',
      target: 'Node 3',
      label: {
        show: true
      },
      
    },
     {
      source: 'Node 3',
      target: 'Node 1',
       label: {
        show: true
      },
      
    },
    {
      source: 'Node 2',
      target: 'Node 3'
    },
     {
      source: 'Node 2',
      target: 'Node 3'
    },
    {
      source: 'Node 2',
      target: 'Node 4',
       label: {
        show: true
      },
    },
     {
      source: 'Node 4',
      target: 'Node 2',
       label: {
        show: true
      },
    },
    {
      source: 'Node 1',
      target: 'Node 4',
       label: {
        show: true
      },
    },
    {
      source: 'Node 4',
      target: 'Node 1'
    }
  ],  //每个节点之间多条关系连线
    ]

  }

Current Behavior

1663032947130

Expected Behavior

中间的线也是正常的曲率,这种情况在其他个数的节点中均未发现,只有四个不行

Environment

- OS:win10
- Browser:chrome
- Framework:Vue@3

Any additional comments?

No response

cyrna avatar Sep 13 '22 01:09 cyrna

@cyrna 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. 🤗

TRANSLATED

TITLE

[Bug] The relationship graph, ring, when there are four nodes, the curvature of the connection in the middle fails, and they all become straight lines and overlap each other

echarts-bot[bot] avatar Sep 13 '22 01:09 echarts-bot[bot]

@cyrna Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.

echarts-bot[bot] avatar Sep 15 '22 08:09 echarts-bot[bot]