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

chapter_11/01_line_chart.html

Open ornenovino opened this issue 6 years ago • 4 comments

Line 36 - in d3 v5 it has changed to:

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

ornenovino avatar Sep 25 '18 14:09 ornenovino

This is for all the scripts where you have to import a file, in all this cases from .csv

ornenovino avatar Sep 25 '18 17:09 ornenovino

Thanks. This is on hold for now, but I will keep it on file should I ever take on a v5 update. :-)

scotthmurray avatar Sep 26 '18 20:09 scotthmurray

Thanks! Can you help me with this? https://stackoverflow.com/questions/52523853/issues-with-d3-request-example-of-d3-book

ornenovino avatar Sep 26 '18 21:09 ornenovino

Yes. The CHANGES.md doc here: https://github.com/d3/d3/blob/master/CHANGES.md

…says:

With the adoption of promises, D3 now uses the Fetch API instead of XMLHttpRequest: the d3-request module has been replaced by d3-fetch. Fetch supports many powerful new features, such as streaming responses.

See: https://github.com/d3/d3-fetch

scotthmurray avatar Sep 29 '18 21:09 scotthmurray