pissang edited a comment on issue #10944: Type Graph, Edges use data arrays index rather than name. URL: https://github.com/apache/incubator-echarts/issues/10944#issuecomment-533953621 @missionz3r0 Hi, we suggested using string type value for the id and property. If you are using `number` type in edges and echarts guess it's an index because index has a higher priority. You can use `string` type instead. ```js data = [{ id: 'n1', name: 'n1', }, { id: 'n2', name: 'n2', }]; edges = [{ source: 'n1', target: 'n2' }]; ```
---------------------------------------------------------------- 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]
