d3-book icon indicating copy to clipboard operation
d3-book copied to clipboard

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

Open sarahromanes opened this issue 6 years ago • 1 comments

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!

sarahromanes avatar Feb 06 '19 08:02 sarahromanes

Indeed. Thanks for the heads-up!

scotthmurray avatar Feb 08 '19 23:02 scotthmurray