You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/07/31 17:44:50 UTC

[GitHub] [incubator-echarts] missionz3r0 opened a new issue #10944: Type Graph, Edges use data arrays index rather than name.

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org