Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary information #17

Open
Node231 opened this issue Jul 7, 2016 · 0 comments
Open

Arbitrary information #17

Node231 opened this issue Jul 7, 2016 · 0 comments

Comments

@Node231
Copy link

Node231 commented Jul 7, 2016

Hello!

Great project, I'm importing data through a .CSV, so my code looks a bit like this

    let src = newData[0]; //source
    let dst = newData[1]; //destination

    //link  
    g.addLink(src, dst); // now graph 'g' has two new nodes: 'src' & 'dst'

Is there any way to add arbitrary data, for example if I had another parameter "newData[2]" that represented the information about the node, or the edge relationship, and add that to any node/link so that information is visible on-screen? Perhaps somewhere like here ?

Also, just wondering if there are any future plans to add a feature to add custom node or link colors, in my case I need to base them off a third data point (if that's possible in this project) that describes the relationship of source/destination.

Very sorry to bother you,
Thanks for any help you are willing to offer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant