d3-book
d3-book copied to clipboard
chapter_11/01_line_chart.html
Line 36 - in d3 v5 it has changed to:
d3.csv("mauna_loa_co2_monthly_averages.csv", rowConverter).then(function(data) {...} ;
This is for all the scripts where you have to import a file, in all this cases from .csv
Thanks. This is on hold for now, but I will keep it on file should I ever take on a v5 update. :-)
Thanks! Can you help me with this? https://stackoverflow.com/questions/52523853/issues-with-d3-request-example-of-d3-book
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