mbostock/d3 — Issue #501: add parsers for tsv and other delimited text
Author: vlandham
Created: 2012-02-13 15:12:57+00:00
State: open

I believe it would be useful to abstract out the parsing and formatting of d3.csv to allow for tab separated texts and perhaps other *sv's.

I've created a quick hack of d3.tsv here:
https://github.com/vlandham/d3.tsv

It uses almost the same code as d3.csv, but instead of hardcoding the separation character, you pass it into the format and parse functions.

Would it be useful to attempt to bring this into the main code base? If so, d3.csv could be modified slightly to use the same code and just pass in a comma.

Any suggestions on what the general parsing code should be called and where it should live so that d3.csv and d3.tsv could share it effectively?