d3-book
d3-book copied to clipboard
converting rows in d3.csv()
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.
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. :)
Thank you Virginia! Was hitting my head against the wall on this one. Wish I had looked at the issue log first.