-
Notifications
You must be signed in to change notification settings - Fork 42
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
Max width for edges and nodes #65
Comments
I tried passing visjs options like this as well:
I took it from this example. |
You can disable the dummy node by accessing the Jaal objects data entry and setting the hidden and physics attributes there:
|
Hey @Famondir thanks for reporting this. |
Hi,
I have problems setting the max width for edges. I tried many of the visjs-settings like
value, width, widthConstrain
resulting in a common width for all edges or without any effect. I find the default max width to big.I also tried
Jaal(edge_df, node_df).plot(directed=True, vis_opts={'physics':{'stabilization':{'iterations': 100}, 'solver' : 'repulsion'}, 'edges': {'scaling': {'min': 1, 'max': 2}}})
with no result (taken from layout.py.Same would be good for node size as well. Especially if you have only few different values (e. g. 1 and 2) it becomes really obscure:
As a work around for the edges I found the posibility to add an edge that connects two non existent nodes and has higher value in the size determing column. E.g. a 10. It won't show up.
For nodes this is not so easy, because the node will show up anywaay. But you can filter it out. If you add a node that you filter out anyway you can use its id as from and to in the edge_df as well:
then becomes
Sincerely Simon
The text was updated successfully, but these errors were encountered: