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

converting rows in d3.csv()

Open VirginiaBalseiro opened this issue 5 years ago • 2 comments

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.

VirginiaBalseiro avatar Jul 07 '19 09:07 VirginiaBalseiro

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. :)

scotthmurray avatar Jul 08 '19 03:07 scotthmurray

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

seanlacey avatar Nov 04 '19 18:11 seanlacey