scotthmurray / d3-book

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

chapter_11/01_line_chart.html #34

Open ornenovino opened 6 years ago

ornenovino commented 6 years ago

Line 36 - in d3 v5 it has changed to:

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

ornenovino commented 6 years ago

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

scotthmurray commented 6 years ago

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

ornenovino commented 6 years ago

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

scotthmurray commented 6 years ago

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