scotthmurray / d3-book

Code examples for “Interactive Data Visualization for the Web”
http://d3book.com
Other
2.4k stars 1.79k forks source link

unable to load chapter 12 .html files in chrome #16

Closed jamieeeeeeeee closed 8 years ago

jamieeeeeeeee commented 8 years ago

All .html files only show the map visualizations when I use FireFox. When I load the same file in Chrome, I can't see any map visualizations, just a blank page. I can't seem to find what setting would cause this.

scotthmurray commented 8 years ago

Are you using a local web server? (That is, does the URL in the address bar start with http://localhost…?) What errors do you see in the console? Can you post a screenshot of what you see, with the error console visible?

jamieeeeeeeee commented 8 years ago

Looks like that solves my issue. I wasn't running a local server, I was just previewing the HTML files, which causes a permissions issue in Chrome. Thanks for clarifying!.

On Tue, May 31, 2016 at 10:20 PM, Scott Murray notifications@github.com wrote:

Are you using a local web server? (That is, does the URL in the address bar start with http://localhost…?) What errors do you see in the console? Can you post a screenshot of what you see, with the error console visible?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alignedleft/d3-book/issues/16#issuecomment-222895351, or mute the thread https://github.com/notifications/unsubscribe/AJxgZDlveIuZckdTMN_3-vMtJ7Zsiznoks5qHRaFgaJpZM4IrGvJ .

JAMIE KENT Senior Product Lead | Graphiq https://www.graphiq.com/ | We're Hiring The Wharton School, University of Pennsylvania '14

scotthmurray commented 8 years ago

Super. See chapter 4 for an explanation of why a local server is needed. :)