Read in data from csv file and make it usable in your program.
- Understand CSV format
- Understand array format
- Understand JavaScript object format
- Understand JavaScript promise syntax
- Be able to use d3.csv
-
Data is stored on a Google Sheet
-
Download as CSV
File -> Download as -> Comma-separated values
-
Use d3.csv to convert from csv to array of javascript objects
The previous project used an online conversion tool.
This project uses d3 to read in the csv file and convert the file into an array of objects.
New versions of d3 use the JavaScript promise .then keyword.
d3.csv("city-month.csv").then(function(dataInFunction){
console.log(dataInFunction);
});

