score:1

Accepted answer

Your callback function passed to map should return something. But you only do a console.log:

return d.map(function (d) {console.log(d)});

So, depending on what your intention is, replace the above by:

return d.map(function (d) { return do_something_with(d); });

If the only reason for doing the map was to log the content of each value in the console, then do:

function chartFromLocal(val)
{
    var data_=  d3.csv.parseRows(val);
    // debugging:
    data_.foreach(function(d){
        d.foreach(function (d) {console.log(d)});
    });
    console.log(data_);
}

Related Query

More Query from same tag