Open shalevv123 opened 2 years ago
@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
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