I have an html-file with several d3-graphs directly written in script tags into it. When I outsource one of the graphs into an external js file I get this message \"NS_ERROR
I have the same problem and I solved using the json file path like this:
d3.json("file:///C:/path/...../js/forcetree.json", function(json) { root = json; update(); });
if I access this path from the browser the file opens.