TrueWill (14) [Avatar] Offline
#1
In the chapter 2 examples, the book (MEAP V03) frequently lists code like

d3.csv("cities.csv", ...


If a reader attempts the examples on their local machine, he or she is likely to see an error similar to

d3.v4.min.js:7 XMLHttpRequest cannot load file:///.../cities.csv. Cross origin requests are only supported for protocol schemes


Could you add a callout or something to address this?

(I ended up using simple-server with node to handle it.)
elijah.meeks (123) [Avatar] Offline
#2
I'm sorry about that, I wouldn't know how you develop with the local file system, I only develop with a local web server running. I'll try to make that more clear that this is the expected dev environment in earlier in the book.
TrueWill (14) [Avatar] Offline
#3
Thank you! smilie