d3 / d3-dsv

A parser and formatter for delimiter-separated values, such as CSV and TSV.

Home Page:https://d3js.org/d3-dsv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Column data will be lost if the column name is the same

jasmine-song opened this issue · comments

console.log(d3.tsvParse("bar\tbar\n1\t2"))
image
If there is the same column name, the data in the previous column is overwritten by the following column
How do I keep data with the same column name

As per the documentation:

If the column names are not unique, only the last value is returned for each name; to access all values, use dsv.parseRows instead (see example).