Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d3 v5 - update to d3.json (Chapter 14) #39

Open
sarahromanes opened this issue Feb 6, 2019 · 1 comment
Open

d3 v5 - update to d3.json (Chapter 14) #39

sarahromanes opened this issue Feb 6, 2019 · 1 comment
Assignees
Labels
v5 This needs revision for D3 v5.x

Comments

@sarahromanes
Copy link

Hey! Thanks for the great work with the book - making my way through it now. Similar to Issue #34 , a change needs to be made when making a json request.

On line 29, instead of
d3.json("us-states.json", function(json) {

Should instead now be

d3.json("us-states.json")
  .then(function(json){	

Cheers!

@scotthmurray scotthmurray self-assigned this Feb 8, 2019
@scotthmurray scotthmurray added the v5 This needs revision for D3 v5.x label Feb 8, 2019
@scotthmurray
Copy link
Owner

Indeed. Thanks for the heads-up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v5 This needs revision for D3 v5.x
Projects
None yet
Development

No branches or pull requests

2 participants