Read in data for the Maternal Mortality Rates in the World with d3.js. Logs the data in the console. This gist was not done in the real D3 'way.' This uses a JS loop that will add p elements for each item in the data set manually instead of using enter().
d3.csv("maternalMortalityRate.csv", function (mydata) {
//Everything involving the dataset should go here.
// d in function(d) is an arbitrary variable that will read in each item(row) in the dataset. mydata is the csv data.
mydata.forEach(function (d) {
body.append("p").text(d.Country + " " + d.year1990 + " " + d.year2015);
// d.key returns the value at the key, e.g. data in the "Country" column (d.Country) and data in the year2015 (d.year) column.
// the key matches the column name in the csv file.
}); //end of d3.csv load
For the Gist, dragging and dropping the file from the file explorer works best.