The links are shown automatically as long as my json object contains something like this:
“linkDataArray”: [
{“from”:“1”, “to”:“2”},
{“from”:“1”, “to”:“3”},
{“from”:“1”, “to”:“4”},
{“from”:“4”, “to”:“5”},
{“from”:“4”, “to”:“6”},
{“from”:“7”, “to”:“2”},
{“from”:“7”, “to”:“3”}
]}
However, I would like to only display the links if I mouse over the node.
For e.g., in the above example, if I mouse over node 1, the links connecting to 2, 3 and 4 will show up.
Or if I were to mouse over node 2, the links connecting to node 1, 3 and 4 will show up.
How do I hide the links by default?