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

Node Type Legend #248

Open
shalevv123 opened this issue Jun 1, 2022 · 2 comments
Open

Node Type Legend #248

shalevv123 opened this issue Jun 1, 2022 · 2 comments

Comments

@shalevv123
Copy link

shalevv123 commented Jun 1, 2022

Is there anyway you could get a color legend? for example in the picture:
Screenshot_199
can you somehow display a map like:
pink- > test
blue -> code
yellow -> requirement

@LukasRasmussen
Copy link

LukasRasmussen commented Jun 30, 2022

@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")
}

@thebestnom
Copy link
Collaborator

@LukasRasmussen not what he asked for 😅 I don't think vis.js allow to read auto node/edge color but I can search

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

3 participants