Replies: 1 comment
-
If you want a persistent tooltip, you have to fork Mesa and modify these lines: mesa/mesa/visualization/templates/js/NetworkModule_d3.js Lines 95 to 104 in 2e85667 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm working on a network-based ABM, so I'm exploiting the (incredible) functionalities of Mesa's NetworkGrid.
However, I'm struggling a bit with understanding how to interact with d3.js visualization support, probably for my lack of experience.
For example, I modified the BoltzmannWealthModelNetwork server's
portrayal["nodes"]
as follows:The tooltip functionality works (i.e. when I move the mouse over the node it shows the label), but it does not show it by default. I tried to add other parameters controlling the label size etc., but none of them seems to do the trick (neither the
showLabels
one is working indeed.Can you suggest me a solution and, in general, a place where I can find some references to which are the parameters I should use?
Thank you so much for your huge work and your help,
GM
Beta Was this translation helpful? Give feedback.
All reactions