d3.js get JSON from url

后端 未结 4 2168
庸人自扰
庸人自扰 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:40

    Should be:

    var url = "http://storageName.blob.core.windows.net/containerName/file.json";
    d3.json(url, function (json) {
        //code here
    });
    

提交回复
热议问题