It also embarrassed me (I also start d3).
So, for some reason, web browsers are unhappy with loading local data, perhaps for security reasons or something else. In any case, to get around this, you need to start the local web server. It is easy.
In your terminal, after cd ing to the root site of your site (thanks @daixtr), type:
python -m SimpleHTTPServer 8888 &
Well, now that this terminal window is open and running, your local 8888 web server will be launched.
So, in my case, the original webpage I was working on was called
file://localhost/Users/hills/Desktop/website/visualizing-us-bls-data-inflation-and-prices.html
When I opened it in chrome. To open my page on my local web server, I simply typed (into the chrome search bar):
http://localhost:8888/Desktop/website/visualizing-us-bls-data-inflation-and-prices.html
Reading in CSV should now work. Strange, I know.
source share