mbostock/d3 — pull request #1122 by cscheid (2013-03-06 17:28:45+00:00)
Title: d3.dsv support for files without headers

The following patch is a minimal addition to d3.dsv to bypass the creation of the construction function, in case the file doesn't contain headers. In that case, the user is responsible for passing a construction function:

d3.csv("foo", callback, function(a) { return { "field1": a[0], "field2": a[1]} });

This might be marginally useful as well for cases where users don't want the entire dsv.

Not sure if this different API is in acceptable style, but the feature has been useful for me on occasion.