I want to load a tsv file from a specific directory which is different from the d3 directory.
My d3 script resides under /home/meet/workspace/d3_test/scripts
and SimpleHTTPServer running at "/" root.
d3.tsv("http://localhost:8888/home/meet/data/data.tsv",function(error,data){
console.log("fetching data.tsv file "+error+data);
});
Throwing an error:
GET http://localhost:8888/home/meet/data/data.tsv 200 OK 5ms (in red color)
fetching data.tsv file [object XMLHttpRequest] undefined
Note:-
- Tried passing
file:///
which is not supported - Mike mentions link with SimpleHTTPServer
- Also, I don't want to edit my browser settings