d3 csv data loading

后端 未结 3 1914
时光说笑
时光说笑 2020-12-08 05:23

I am trying to adapt a simple scatterplot program in D3 to accept a CSV file. When I use the data in the file it works just fine, but when I try to load the CSV file it simp

3条回答
  •  盖世英雄少女心
    2020-12-08 06:05

    D3 provides a builtin for this very thing.

    Instead of calling .parse() on your data, call .parseRows. This provides just the data as an Array, rather than an Object (based upon the header line).

    see the Documentation.

提交回复
热议问题