1

I am currently working on a tree that is designed using d3.js. Right now, the .html runs prefectly in Edge and firefox, but will not load the graphic in chrome. Additionally, when I change dataLoadUrl from a local file to a github stored file it runs fine on chrome.

Here is the snippet of code I suspect to be the issue

dataLoadUrl: "data.json",
d3.json(params.dataLoadUrl, function(data) {                                              
  params.data = data;                                                               
  params.pristinaData = JSON.parse(JSON.stringify(data));                
  drawOrganizationChart(params);})

Any help would be greatly appreciate.

Matt Tullo
  • 11
  • 1
  • are you running server on local ? directly opening .html file won't allow a local file to be accessed in chrome – Harshal Carpenter Dec 18 '19 at 18:43
  • Can you share the content of your HTML file? – Chuanqi Sun Dec 18 '19 at 18:51
  • I closed this question as a duplicate. There are numerous posts around dealing with various aspects of this issue. Bottom line: you cannot load local files like this; at least not without deactivating security featues. Try searching for your error message or "[d3] load local file" or something like that to get more help. – altocumulus Dec 18 '19 at 20:13

0 Answers0