I am new to D3 and Javascript, but I was usually lucky with just copying the main D3 scripts and getting my data in the proper format for visualization. I tried several D3 network graphs and got the same error for everyone when I view the page.
Uncaught TypeError: Unable to read the 'force' property from undefined.
If you look at the script here: http://bl.ocks.org/jose187/4733747
I just copied it completely along with the corresponding .json file and got the above error. D3.layout.force () seems to be an “anonymous function”. Any ideas what is going on? Or how to fix it? Thank!
source
share