Creating a table linked to a csv file

后端 未结 4 1736
暖寄归人
暖寄归人 2020-11-28 02:39

I am trying to create a table linked to a *.csv file using d3, but all I get is a blank webpage. Even with the example Crimea I get a blank page.
I would be

4条回答
  •  温柔的废话
    2020-11-28 03:22

    There is a bug in the answer proposed by @Shawn_allen.

    To solve it just change the following line of code

    return {column: column, value: row[column]};
    

    by this one

    return {column: column, value: row[columns.indexOf(column)]};
    

    Enjoy !

提交回复
热议问题