I am trying to test the example of the DataTree of D3Js and I just copied and pasted the code in: http://bl.ocks.org/d3noob/8329447 . I saved the TreeData.json in my C drive and changed the d3.json("treeData.json", function(error, treeData) to d3.json("C: reeData.json", function(error, treeData) and I get the error of "Cannot read property '0' of undefined" by looking at the javascript console. But once I hard code the json file into the program it works fine. Can somebody help me with that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…