I am trying to do network visualization of RISK. You can view it using the required code http://bl.ocks.org/4683850 .
Visualization works, but it takes a lot of manual labor. I manually adapted the json file so that the connections would have the following form:
{ "source": 1, "target": 0, "value": 5 }
What needs to be done with the d3 code so that the connection is determined by the hostnames? Then the entry will be as follows:
{ "source": "WesternAustralia", "target": "NewGuinea", "value": 5 }
Whenever I try, I get the following error:
Uncaught TypeError: Cannot call method 'push' of undefined
source share