Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
175
rated 0 times [  180] [ 5]  / answers: 1 / hits: 27228  / 10 Years ago, tue, march 11, 2014, 12:00:00

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 to my machine. I would like to be able get the JSON file from the url with d3, but no graph is produced which leads me to believe that the d3 is unable to read the file.



Here is a snippet of the code:



            var url = http://storageName.blob.core.windows.net/containerName/file.json;

d3.json(url, function (json) {

//code here
})


I have set the container to public on Azure, so i believe that it should be accessible to anyone with the url. Any suggestions?


More From » json

 Answers
37

you'll have to set the Content-Type http header to application/json on your blob.



It can be done programmatically or using the rest API, or using a free utility like cloudberry explorer for azure blob storage.


[#72054] Sunday, March 9, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
diamondlauryna

Total Points: 386
Total Questions: 93
Total Answers: 103

Location: South Korea
Member since Fri, Sep 11, 2020
4 Years ago
diamondlauryna questions
;