d3.js get JSON from url

后端 未结 4 2175
庸人自扰
庸人自扰 2020-12-21 02:01

The situation is that i am trying to get d3 to read a JSON file which is stored in Windows Azure Blob storage. If i paste the url into a browser then the file is downloaded

4条回答
  •  遥遥无期
    2020-12-21 02:52

    Relevant for 2019:

    d3.json("http://127.0.0.1:8080/mydata.json").then( data => {
        console.log(data);
    })
    

提交回复
热议问题