You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I wondered if it is possible to display the title or a label under the nodes instead of the id. In my case the ids are urls wich are quite long. So it would be great to show the (shortened) website title instead wich right now is passed in the node_df and thus shown as tooltip. I tried something like this:
Jaal(edge_df, node_df).plot(directed=True, vis_opts={'nodes': {'label': 'node_df[title]'}}) # not working
Jaal(edge_df, node_df).plot(directed=True, vis_opts={'nodes': {'label': 'title'}}) # not working either
I also tried to pass the labels in a label column in the node_df (like in the example with edge labels).
Here you can see how crowded it becomes even with 4 nodes.
As a workaround I could create new ids (with numbers eventually combined with the website title) and show the url in the tooltip. But I think it might be handy to just specify the node labels as well.
The text was updated successfully, but these errors were encountered:
Famondir
changed the title
Display label/title instead of id on nodes
[Feature Request] Display label/title instead of id on nodes
Nov 7, 2023
Hey @Famondir, it seems some data massaging can solve this. For example, you can put the real identifiers (which could be long) under _id and put the display value under id.
Let me know if this is not helpful.
Hi there,
I wondered if it is possible to display the title or a label under the nodes instead of the id. In my case the ids are urls wich are quite long. So it would be great to show the (shortened) website title instead wich right now is passed in the node_df and thus shown as tooltip. I tried something like this:
I also tried to pass the labels in a label column in the node_df (like in the example with edge labels).
Here you can see how crowded it becomes even with 4 nodes.
As a workaround I could create new ids (with numbers eventually combined with the website title) and show the url in the tooltip. But I think it might be handy to just specify the node labels as well.
The text was updated successfully, but these errors were encountered: