anvaka / pm

package managers visualization
https://anvaka.github.io/pm/
MIT License
1.57k stars 134 forks source link

Arbitrary information #17

Open Node231 opened 8 years ago

Node231 commented 8 years ago

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.