scotthmurray / d3-book

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

converting rows in d3.csv() #40

Open VirginiaBalseiro opened 5 years ago

VirginiaBalseiro commented 5 years ago

I had to change:

d3.csv("time_scale_data.csv", rowConverter, function(data) {...})

to:

d3.csv("time_scale_data.csv", rowConverter).then(function(data) {...})

to get it to work.

scotthmurray commented 5 years ago

Thanks for reporting! Yes, this is one of many things that changed with D3 v5.0. (The 2nd edition of the book addresses v4.5.0 only.)

I will leave this issue open for some future update to the book. :)

seanlacey commented 4 years ago

Thank you Virginia! Was hitting my head against the wall on this one. Wish I had looked at the issue log first.