You need to have the JSON file reachable on your host. If it is at the root of the host then d3.json("testfin.json") should work, alternatively correct path will depend on your folder structure. I suggest you download the gist and have a look how it works in the example you refer to.

Related Query