d3.json local file in html code example Example: d3 not reading json d3.json("file.json").then(function(data){ console.log(data)});