missionz3r0 opened a new issue #10944: Type Graph, Edges use data arrays index 
rather than name.
URL: https://github.com/apache/incubator-echarts/issues/10944
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   For a circular or force graph create a data array with names that do not 
correspond to each objects index within the array.
   
   For example:
   ```
   data = [{
       id: 1,
       name: 1,
     }, {
       id: 2,
       name: 2,
     }];
   
   edges = [{
       source: 1,
       target: 2
   }];
   ```
   
   ### What is expected?
   An edge is created between node 1, and node 2
   
   ### What is actually happening?
   An edge is being made between the node at array index 1, and array index 2.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to