D3.js can't load json file D3.js can't load json file apache apache

D3.js can't load json file


You should change line

var data = d3.json("2013 Inf-2.json", function(error, root) {

to

var data = d3.json("2013 Inf-2.json", function(error, data) {

So you just have to replace "root" with "data"