crubier / react-graph-vis

A react component to render nice graphs using vis.js

Home Page:http://crubier.github.io/react-graph-vis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JC2615 opened this issue · comments

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?

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

I see. Thank you