Uncaught TypeError: d3.csv(…).then is not a function

微笑、不失礼 提交于 2020-05-30 06:30:05

问题


    var allData;
    d3.csv('hello.csv', function(d) {
      return {
        id: +d.id,
        state: d.state
      };
    }).then(function(data) {
      allData = data;
    });

Above code is causing an error

Uncaught TypeError: d3.csv(...).then is not a function

I don't know what is wrong.

来源:https://stackoverflow.com/questions/60625450/uncaught-typeerror-d3-csv-then-is-not-a-function

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!