-
Notifications
You must be signed in to change notification settings - Fork 1.5k
show hide a node by id #140
Comments
Hi Oceatoon, We currently do not have a visibility option for our nodes or edges. As a workaround though, you could change their color to the background using setOptions()? Regards, Alex |
Hi Alex I have a message conflict about existing Ids so unable to redraw it would be really usefull to simply show hide certain id nodes On Thu, May 22, 2014 at 12:27 PM, Alex notifications@github.com wrote:
Tibor Katelbach – Senior Developper Save a tree...please don't print this e-mail unless you really need to. |
Hi Oceatoon, What do you mean with redraw? It does not sound like a redraw is required, all could be done with AJAX and normal javascript? At the moment we do not have any plans to implement a visibility option. The workaround I gave you should work, could you further explain what you mean with " my problem is when I redraw the whole" or why the workaround is not feasible? Regards, Alex |
Hi Oceatoon, Is this still an issue? Regards, Alex |
Hi Alex |
Hi Oceatoon, If you're using a Dataset you can update your content. This means you can trigger a style update on nodes and edges WITHOUT reloading the page. Is there any reason why this is not possible? Take a look at http://visjs.org/examples/network/16_dynamic_data.html Regards, Alex |
Hi ALex |
Hi Oceatoon, If your background is an image you cannot set it to a color to hide it. This is how you update the color: In example 16 you can use: nodes.update({id:1,color:"#FFFFFF"}); to make the background of a node white. You can also pass the documented color object to make it completely one color. Come to think of it, you can try to use an RGBA value:
It works on my end, can you get it to work as well? Regards, Alex |
Hi Oceatoon, As far as I can tell, this issue is closed. You're provided with a working line of code to produce you're results. If you have any other questions regarding this, please let me know. For now I'll close the issue. Regards, Alex |
Just because I ran into the same problem and Alex's comment helped me some hits that might be useful:
|
@wolfig @AlexDM0 Would be nice if hidden effectively removes/hides the edges connected to it as well. |
Hi
Thanks for your great work
I'm making a tag filter on a graph,
I can't find in the docs how to show hide a node in a graph with it's ID ?
is there a sample with something like this ?
The text was updated successfully, but these errors were encountered: