crubier / react-graph-vis

A react component to render nice graphs using vis.js
http://crubier.github.io/react-graph-vis/
MIT License
946 stars 170 forks source link

Is there a way to use another key as 'id' or 'label' for nodes and edges #107

Closed JC2615 closed 3 years ago

JC2615 commented 3 years ago

For example if I have an object: {userID: 1, name: "John"} instead of {id: 1, label: "John"} is there a way I can use my keys directly?

crubier commented 3 years ago

No, this is a constraint coming from the underlying vis.js library

JC2615 commented 3 years ago

I see. Thank you