Hi Zac,
The issue is that d3.json uses
XMLHTTPRequest to fetch the data, which means it must use the "http://" protocol, not the "file://" protocol.
You're almost there by running
python -m SimpleHTTPServer 8888
The key thing here is that yes, you need to run that from the command prompt AND you need to first navigate into the directory where your files are. If, for example, your files are in "C:\Users\Me\Visualizations\walkingDead", you'll need to start the server with these two commands:
cd C:\Users\Me\Visualizations\walkingDead
python -m SimpleHTTPServer 8888
(I'm not sure if "cd" works in Windows, maybe it's "dir")
Let's say you have the following files:
C:\Users\Me\Visualizations\walkingDead\index.html
C:\Users\Me\Visualizations\walkingDead\wd_season5.json
C:\Users\Me\Visualizations\walkingDead\3-3.5.16.js
These will be available in your Web browser at the following URLs while the server is running:
Due to a convention of the Web, index.html will actually served when you access
I think the best solution would be to use relative URLs in your index.html. This would look like this:
<script src="d3.v3.min.js"></script>
...
var url="walking_dead_s5.json";
Hope this helps!
Best regards,
Curran