I'm trying to understand reading external file .csv in d3 works with the type
I'm following Mike's http://bl.ocks.org/mbostock/1157787
I have read tutorial for reading csv, but I couldn't figure it out what type in this line actually does ?
d3.csv("stocks.csv", type, function(error, data) {
There are type function below
function type(d) {
d.price = +d.price;
d.date = parseDate(d.date);
return d;
}
Can anyone help me understand this ? d.price = +d.price
is that mean reading the next price ? or adding ?