0

I wanted to highlight all neighbors of the selected node (highlightNearest)

enter image description here

I am not able to achieve the same with javascript

Srackblitz link

asked Feb 17, 2020 at 10:35

1 Answer 1

1
answered Feb 17, 2020 at 11:22
Sign up to request clarification or add additional context in comments.

3 Comments

Here they are writing custom methods for highlighting nodes. If you see vis documentation they have builtin method visOptions(highlightNearest = true) which we can make use of. I am able to achieve that with R. But with js no luck datastorm-open.github.io/visNetwork/options.html
It seems you are referring to this visNetwork R package which is a separate library built on top of vis.js. I have looked through the official vis-network docs and was not able to find a highlightNearest option. It seems that unfortunately to do this in JS, currently the only way is to use a custom method.
ahh ok. my bad. Thanks

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.