I'm using D3 library to make a GeoMap chart. I downloaded a dataset from github "geonames" and wanted to use this data set in my map to check if my code works. I've used console.log
to check if everything is going fine and IT IS! but the problem is that usin D3.CSV I cant access any file from my local directory, even if its saved on the same folder. I'm new to d3 but have been using JS, not professionally. would really appreciate help or suggestions.
These are both the options I've tried, first is from my local directory Second is from that github account from where I downloaded thew CSV file.
d3.csv("geonames_cities100000.csv",type, render);
d3.csv("https://github.com/curran/data/blob/gh-pages/geonames/cities1000000.csv",type,render);
I'm getting an error "Blocked by CORS policy: No 'Access-Control-Allow-Origin' , and thus my data is passing null.