scotthmurray / d3-book

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

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

Open sarahromanes opened 5 years ago

sarahromanes commented 5 years ago

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 commented 5 years ago

Indeed. Thanks for the heads-up!