neovis.js
neovis.js copied to clipboard
Node Type Legend
Is there anyway you could get a color legend? for example in the picture:
can you somehow display a map like:
pink- > test
blue -> code
yellow -> requirement
@shalevv123 Try like this:
neovis.registerOnEvent('completed', () => {
neovis.edges.updateOnly( neovis.edges.get().filter( getTestEdges() ).map(edge => ( {...edge, color:"pink" } ) ) );
});
getTestEdges(x) {
return x.raw.labels.includes("Test")
}
@LukasRasmussen not what he asked for 😅 I don't think vis.js allow to read auto node/edge color but I can search