Accepted answer

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

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

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

return (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:
        d.foreach(function (d) {console.log(d)});

Related Query

More Query from same tag